aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorWANG Cong <amwang@redhat.com>2010-05-06 03:48:24 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-06 03:48:24 -0400
commitc06ee961d3c0e51009cbd0e123b61fbb97f37d0b (patch)
tree5d5899374a6f32f5ab77a78e6baeeb4a122a4721 /net/bridge/br_private.h
parent0e34e93177fb1f642cab080e0bde664c06c7183a (diff)
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>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 018499ebe19d..3d2d3fe0a97e 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -253,6 +253,8 @@ static inline int br_is_root_bridge(const struct net_bridge *br)
253extern void br_dev_setup(struct net_device *dev); 253extern void br_dev_setup(struct net_device *dev);
254extern netdev_tx_t br_dev_xmit(struct sk_buff *skb, 254extern netdev_tx_t br_dev_xmit(struct sk_buff *skb,
255 struct net_device *dev); 255 struct net_device *dev);
256extern bool br_devices_support_netpoll(struct net_bridge *br);
257extern void br_netpoll_cleanup(struct net_device *br_dev);
256 258
257/* br_fdb.c */ 259/* br_fdb.c */
258extern int br_fdb_init(void); 260extern int br_fdb_init(void);