netpoll: Move netpoll_trap under CONFIG_NETPOLL_TRAP
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 15 Mar 2014 03:49:43 +0000 (20:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 19:47:22 +0000 (15:47 -0400)
commitad8d475244b4112a0f5331e78d043d3a4c9eb37e
tree6b0f8bee145b6fda7f60fa4aecb223a00774fd4e
parentb6bacd550c33124ea76291bd84ac42c8d30767eb
netpoll: Move netpoll_trap under CONFIG_NETPOLL_TRAP

Now that we no longer need to receive packets to safely drain the
network drivers receive queue move netpoll_trap and netpoll_set_trap
under CONFIG_NETPOLL_TRAP

Making netpoll_trap and netpoll_set_trap noop inline functions
when CONFIG_NETPOLL_TRAP is not set.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netpoll.h
net/core/netpoll.c