aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeaceslav Falico <vfalico@redhat.com>2013-08-28 17:25:12 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-29 16:19:43 -0400
commita59d3d21ea7636d4cc7fb921104b9b4a59196839 (patch)
tree80e7a1ace6d5b75fcbba6cc22a19f23eca5ecf6f
parent50223ce4be70367ca5d8135bfd4c976e148bc491 (diff)
bonding: use vlan_uses_dev() in __bond_release_one()
We always hold the rtnl_lock() in __bond_release_one(), so use vlan_uses_dev() instead of bond_vlan_used(). CC: Jay Vosburgh <fubar@us.ibm.com> CC: Andy Gospodarek <andy@greyhouse.net> Signed-off-by: Veaceslav Falico <vfalico@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/bonding/bond_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index f38d59072572..55a48d32c1ec 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1954,7 +1954,7 @@ static int __bond_release_one(struct net_device *bond_dev,
1954 bond_set_carrier(bond); 1954 bond_set_carrier(bond);
1955 eth_hw_addr_random(bond_dev); 1955 eth_hw_addr_random(bond_dev);
1956 1956
1957 if (bond_vlan_used(bond)) { 1957 if (vlan_uses_dev(bond_dev)) {
1958 pr_warning("%s: Warning: clearing HW address of %s while it still has VLANs.\n", 1958 pr_warning("%s: Warning: clearing HW address of %s while it still has VLANs.\n",
1959 bond_dev->name, bond_dev->name); 1959 bond_dev->name, bond_dev->name);
1960 pr_warning("%s: When re-adding slaves, make sure the bond's HW address matches its VLANs'.\n", 1960 pr_warning("%s: When re-adding slaves, make sure the bond's HW address matches its VLANs'.\n",