diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-05-10 05:31:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-16 02:10:01 -0400 |
commit | cfb478da70f2213520866c84cb0aea0d7c0e1148 (patch) | |
tree | bc1a1ea16bbb2be0481d3231a2fbe5611437da55 /net/bridge/br_private.h | |
parent | c17b274dc2aa538b68c1f02b01a3c4e124b435ba (diff) |
bridge: netpoll cleanup
Move code around so that the ifdef for NETPOLL_CONTROLLER don't have to
show up in main code path. The control functions should be in helpers
that are only compiled if needed.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.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.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 3d2d3fe0a97e..8a072661a744 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -253,8 +253,18 @@ static inline int br_is_root_bridge(const struct net_bridge *br) | |||
253 | extern void br_dev_setup(struct net_device *dev); | 253 | extern void br_dev_setup(struct net_device *dev); |
254 | extern netdev_tx_t br_dev_xmit(struct sk_buff *skb, | 254 | extern netdev_tx_t br_dev_xmit(struct sk_buff *skb, |
255 | struct net_device *dev); | 255 | struct net_device *dev); |
256 | extern bool br_devices_support_netpoll(struct net_bridge *br); | 256 | #ifdef CONFIG_NET_POLL_CONTROLLER |
257 | extern void br_netpoll_cleanup(struct net_device *br_dev); | 257 | extern void br_netpoll_cleanup(struct net_device *dev); |
258 | extern void br_netpoll_enable(struct net_bridge *br, | ||
259 | struct net_device *dev); | ||
260 | extern void br_netpoll_disable(struct net_bridge *br, | ||
261 | struct net_device *dev); | ||
262 | #else | ||
263 | #define br_netpoll_cleanup(br) | ||
264 | #define br_netpoll_enable(br, dev) | ||
265 | #define br_netpoll_disable(br, dev) | ||
266 | |||
267 | #endif | ||
258 | 268 | ||
259 | /* br_fdb.c */ | 269 | /* br_fdb.c */ |
260 | extern int br_fdb_init(void); | 270 | extern int br_fdb_init(void); |