bonding:record primary when modify it via sysfs
authorWeiping Pan <[email protected]>
Sun, 10 Jun 2012 23:00:20 +0000 (23:00 +0000)
committerDavid S. Miller <[email protected]>
Tue, 12 Jun 2012 22:23:11 +0000 (15:23 -0700)
commit8a93664df90db983cfede122f9b4ddb3a8284e52
tree2b1da6946606e88a853edb62b3851a2b616d7c00
parent5aa04d3af8916d890836ccaa9d146edee1e4c655
bonding:record primary when modify it via sysfs

If we modify primary via sysfs and it is not a valid slave,
we should record it for future use, and this behavior is the same with
bond_check_params().

Signed-off-by: Weiping Pan <[email protected]>
Acked-by: Nicolas de Pesloüan <[email protected]>
Signed-off-by: Jay Vosburgh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/bonding/bond_sysfs.c