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:
6c08af0
)
bonding: check for assigned mac before adopting the slaves mac address
author
David Strand
<
[email protected]
>
Wed, 1 Dec 2010 19:43:08 +0000
(11:43 -0800)
committer
David S. Miller
<
[email protected]
>
Wed, 1 Dec 2010 19:43:08 +0000
(11:43 -0800)
Restore the check for an unassigned mac address before adopting the
first slaves as it's own. The change in behavior was introduced by:
commit
c20811a79e671a6a1fe86a8c1afe04aca8a7f085
Author: Jiri Pirko <
[email protected]
>
bonding: move dev_addr cpy to bond_enslave
Signed-off-by: David Strand <
[email protected]
>
Signed-off-by: Jay Vosburgh <
[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 71a169740d05daf463b04f2ff591a943f8c1847e..2fee00a4c9ef426768cb940d614200554197a90e 100644
(file)
--- a/
drivers/net/bonding/bond_main.c
+++ b/
drivers/net/bonding/bond_main.c
@@
-1576,7
+1576,7
@@
int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
/* If this is the first slave, then we need to set the master's hardware
* address to be the same as the slave's. */
- if (
bond->slave_cnt == 0
)
+ if (
is_zero_ether_addr(bond->dev->dev_addr)
)
memcpy(bond->dev->dev_addr, slave_dev->dev_addr,
slave_dev->addr_len);