diff options
author | Peter Pan(潘卫平) <panweiping3@gmail.com> | 2011-06-08 17:19:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-09 18:02:18 -0400 |
commit | ba824a8b2d77942d51ce45ed721f65764c00ab50 (patch) | |
tree | 87fd6d0d6358faf1fe41e1e5a79e4ff5b5a85397 /drivers/net/bonding/bond_sysfs.c | |
parent | b880a954b9e2585ce325aedd76e4741880cab180 (diff) |
bonding: make 802.3ad use latest lacp_rate
There is bug that when you modify lacp_rate via sysfs,
802.3ad won't use the new value of lacp_rate to transmit packets.
This is because port->actor_oper_port_state isn't changed.
Signed-off-by: Weiping Pan <panweiping3@gmail.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 88fcb25e554a..03d1196b844d 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -804,6 +804,7 @@ static ssize_t bonding_store_lacp(struct device *d, | |||
804 | 804 | ||
805 | if ((new_value == 1) || (new_value == 0)) { | 805 | if ((new_value == 1) || (new_value == 0)) { |
806 | bond->params.lacp_fast = new_value; | 806 | bond->params.lacp_fast = new_value; |
807 | bond_3ad_update_lacp_rate(bond); | ||
807 | pr_info("%s: Setting LACP rate to %s (%d).\n", | 808 | pr_info("%s: Setting LACP rate to %s (%d).\n", |
808 | bond->dev->name, bond_lacp_tbl[new_value].modename, | 809 | bond->dev->name, bond_lacp_tbl[new_value].modename, |
809 | new_value); | 810 | new_value); |