bridge: make bridge support netpoll
authorWANG Cong <amwang@redhat.com>
Thu, 6 May 2010 07:48:24 +0000 (00:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 07:48:24 +0000 (00:48 -0700)
commitc06ee961d3c0e51009cbd0e123b61fbb97f37d0b
tree5d5899374a6f32f5ab77a78e6baeeb4a122a4721
parent0e34e93177fb1f642cab080e0bde664c06c7183a
bridge: make bridge support netpoll

Based on the previous patch, make bridge support netpoll by:

1) implement the 2 methods to support netpoll for bridge;

2) modify netpoll during forwarding packets via bridge;

3) disable netpoll support of bridge when a netpoll-unabled device
   is added to bridge;

4) enable netpoll support when all underlying devices support netpoll.

Cc: David Miller <davem@davemloft.net>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_forward.c
net/bridge/br_if.c
net/bridge/br_private.h