Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132536
b: refs/heads/master
c: 17d0450
h: refs/heads/master
v: v3
  • Loading branch information
Jay Vosburgh authored and David S. Miller committed Mar 19, 2009
1 parent 3e12a32 commit 30a0d89
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 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: 690103137267e9ed893febf7ff061af63e8235a9
refs/heads/master: 17d04500e2528217de5fe967599f98ee84348a9c
25 changes: 20 additions & 5 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3537,11 +3537,26 @@ static int bond_slave_netdev_event(unsigned long event, struct net_device *slave
}
break;
case NETDEV_CHANGE:
/*
* TODO: is this what we get if somebody
* sets up a hierarchical bond, then rmmod's
* one of the slave bonding devices?
*/
if (bond->params.mode == BOND_MODE_8023AD || bond_is_lb(bond)) {
struct slave *slave;

slave = bond_get_slave_by_dev(bond, slave_dev);
if (slave) {
u16 old_speed = slave->speed;
u16 old_duplex = slave->duplex;

bond_update_speed_duplex(slave);

if (bond_is_lb(bond))
break;

if (old_speed != slave->speed)
bond_3ad_adapter_speed_changed(slave);
if (old_duplex != slave->duplex)
bond_3ad_adapter_duplex_changed(slave);
}
}

break;
case NETDEV_DOWN:
/*
Expand Down

0 comments on commit 30a0d89

Please sign in to comment.