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>
This commit is contained in:

committed by
David S. Miller

parent
b880a954b9
commit
ba824a8b2d
@@ -804,6 +804,7 @@ static ssize_t bonding_store_lacp(struct device *d,
|
||||
|
||||
if ((new_value == 1) || (new_value == 0)) {
|
||||
bond->params.lacp_fast = new_value;
|
||||
bond_3ad_update_lacp_rate(bond);
|
||||
pr_info("%s: Setting LACP rate to %s (%d).\n",
|
||||
bond->dev->name, bond_lacp_tbl[new_value].modename,
|
||||
new_value);
|
||||
|
Reference in New Issue
Block a user