]> git.baikalelectronics.ru Git - kernel.git/commit
bonding:delete lacp_fast from ad_bond_info
authorPeter Pan(潘卫平) <panweiping3@gmail.com>
Wed, 8 Jun 2011 21:19:02 +0000 (21:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2011 22:02:19 +0000 (15:02 -0700)
commitb468a8e3a6184a65f99ed129147ebcd60aac5e21
treeeee1af15c0b836495d59e42053bac065827a1618
parent18c925ce495f416e3372d5942a50ba99fa06842b
bonding:delete lacp_fast from ad_bond_info

These is also a bug, that if you modify lacp_rate via sysfs,
and add new slaves in bonding, new slaves won't use the latest lacp_rate,
since ad_bond_info->lacp_fast is initialized only once,
in bond_3ad_initialize().

Since both struct bond_params and ad_bond_info have lacp_fast,
they are duplicate and need extra synchronization.

bond_3ad_bind_slave() can use bond_params->lacp_fast to initialize port.
So we can just remove lacp_fast from struct ad_bond_info.

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>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_3ad.h
drivers/net/bonding/bond_main.c