projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50223ce
)
bonding: use vlan_uses_dev() in __bond_release_one()
author
Veaceslav Falico
<
[email protected]
>
Wed, 28 Aug 2013 21:25:12 +0000
(23:25 +0200)
committer
David S. Miller
<
[email protected]
>
Thu, 29 Aug 2013 20:19:43 +0000
(16:19 -0400)
We always hold the rtnl_lock() in __bond_release_one(), so use
vlan_uses_dev() instead of bond_vlan_used().
CC: Jay Vosburgh <
[email protected]
>
CC: Andy Gospodarek <
[email protected]
>
Signed-off-by: Veaceslav Falico <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bonding/bond_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bond_main.c
b/drivers/net/bonding/bond_main.c
index f38d59072572130fb0165ec239bdd9fd86130b02..55a48d32c1eca63624363b1c31eaa53fac30907f 100644
(file)
--- 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,
bond_set_carrier(bond);
eth_hw_addr_random(bond_dev);
- if (
bond_vlan_used(bond
)) {
+ if (
vlan_uses_dev(bond_dev
)) {
pr_warning("%s: Warning: clearing HW address of %s while it still has VLANs.\n",
bond_dev->name, bond_dev->name);
pr_warning("%s: When re-adding slaves, make sure the bond's HW address matches its VLANs'.\n",