summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding.h
diff options
context:
space:
mode:
authorJiri Pirko2011-07-20 06:54:46 +0200
committerDavid S. Miller2011-07-21 22:47:58 +0200
commitcc0e40700656b09d93b062ef6c818aa45429d09a (patch)
treee9501fb2576086a2bb932b8db872276e29340450 /drivers/net/bonding/bonding.h
parentstaging: et131x: remove unused prototype et131x_vlan_rx_register (diff)
downloadkernel-qcow2-linux-cc0e40700656b09d93b062ef6c818aa45429d09a.tar.gz
kernel-qcow2-linux-cc0e40700656b09d93b062ef6c818aa45429d09a.tar.xz
kernel-qcow2-linux-cc0e40700656b09d93b062ef6c818aa45429d09a.zip
bonding: do vlan cleanup
Now when all devices are cleaned up, bond can be cleaned up as well - remove bond->vlgrp - remove bond_vlan_rx_register - substitute necessary occurences of vlan_group_get_device Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r--drivers/net/bonding/bonding.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
index 2936171f5332..43526a2d275c 100644
--- a/drivers/net/bonding/bonding.h
+++ b/drivers/net/bonding/bonding.h
@@ -240,7 +240,6 @@ struct bonding {
struct alb_bond_info alb_info;
struct bond_params params;
struct list_head vlan_list;
- struct vlan_group *vlgrp;
struct workqueue_struct *wq;
struct delayed_work mii_work;
struct delayed_work arp_work;
@@ -253,6 +252,11 @@ struct bonding {
#endif /* CONFIG_DEBUG_FS */
};
+static inline bool bond_vlan_used(struct bonding *bond)
+{
+ return !list_empty(&bond->vlan_list);
+}
+
#define bond_slave_get_rcu(dev) \
((struct slave *) rcu_dereference(dev->rx_handler_data))