Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298470
b: refs/heads/master
c: 7d26bb1
h: refs/heads/master
v: v3
  • Loading branch information
Weiping Pan authored and David S. Miller committed Mar 29, 2012
1 parent cf69f7a commit 8553376
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b9785c6b0ff37ac4ef5085b38756283da84dceb
refs/heads/master: 7d26bb103c4162003bfdf1d63aaa32b548ad0e9a
8 changes: 7 additions & 1 deletion trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,15 @@ static void bond_do_fail_over_mac(struct bonding *bond,

switch (bond->params.fail_over_mac) {
case BOND_FOM_ACTIVE:
if (new_active)
if (new_active) {
memcpy(bond->dev->dev_addr, new_active->dev->dev_addr,
new_active->dev->addr_len);
write_unlock_bh(&bond->curr_slave_lock);
read_unlock(&bond->lock);
call_netdevice_notifiers(NETDEV_CHANGEADDR, bond->dev);
read_lock(&bond->lock);
write_lock_bh(&bond->curr_slave_lock);
}
break;
case BOND_FOM_FOLLOW:
/*
Expand Down

0 comments on commit 8553376

Please sign in to comment.