]> git.baikalelectronics.ru Git - kernel.git/commit
bonding:record primary when modify it via sysfs
authorWeiping Pan <wpan@redhat.com>
Sun, 10 Jun 2012 23:00:20 +0000 (23:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jun 2012 22:23:11 +0000 (15:23 -0700)
commit7412298a2253c44382a0af8a9e5dee95a78de88d
tree2b1da6946606e88a853edb62b3851a2b616d7c00
parenta9a9156ffa8c1e3bd879811a386f361dfbc4232a
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 <wpan@redhat.com>
Acked-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c