diff options
author | WANG Cong <amwang@redhat.com> | 2010-05-06 03:47:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-06 03:47:21 -0400 |
commit | 0e34e93177fb1f642cab080e0bde664c06c7183a (patch) | |
tree | 5353f873ab99c2cff76f12b41e9a9e2018e66b30 /include/linux/netdevice.h | |
parent | 08259594e047170923ef11d1482648642bfe606f (diff) |
netpoll: add generic support for bridge and bonding devices
This whole patchset is for adding netpoll support to bridge and bonding
devices. I already tested it for bridge, bonding, bridge over bonding,
and bonding over bridge. It looks fine now.
To make bridge and bonding support netpoll, we need to adjust
some netpoll generic code. This patch does the following things:
1) introduce two new priv_flags for struct net_device:
IFF_IN_NETPOLL which identifies we are processing a netpoll;
IFF_DISABLE_NETPOLL is used to disable netpoll support for a device
at run-time;
2) introduce one new method for netdev_ops:
->ndo_netpoll_cleanup() is used to clean up netpoll when a device is
removed.
3) introduce netpoll_poll_dev() which takes a struct net_device * parameter;
export netpoll_send_skb() and netpoll_poll_dev() which will be used later;
4) hide a pointer to struct netpoll in struct netpoll_info, ditto.
5) introduce ->real_dev for struct netpoll.
6) introduce a new status NETDEV_BONDING_DESLAE, which is used to disable
netconsole before releasing a slave, to avoid deadlocks.
Cc: David Miller <davem@davemloft.net>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 98112fbddefd..69022d47d6f2 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -724,6 +724,7 @@ struct net_device_ops { | |||
724 | unsigned short vid); | 724 | unsigned short vid); |
725 | #ifdef CONFIG_NET_POLL_CONTROLLER | 725 | #ifdef CONFIG_NET_POLL_CONTROLLER |
726 | void (*ndo_poll_controller)(struct net_device *dev); | 726 | void (*ndo_poll_controller)(struct net_device *dev); |
727 | void (*ndo_netpoll_cleanup)(struct net_device *dev); | ||
727 | #endif | 728 | #endif |
728 | int (*ndo_set_vf_mac)(struct net_device *dev, | 729 | int (*ndo_set_vf_mac)(struct net_device *dev, |
729 | int queue, u8 *mac); | 730 | int queue, u8 *mac); |