bonding: introduce primary_reselect option
authorJiri Pirko <jpirko@redhat.com>
Fri, 25 Sep 2009 03:28:09 +0000 (03:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 08:07:39 +0000 (01:07 -0700)
commita549952ad323d68daf5b50bf716db895479af84c
treec819e8c33701696115c3d60b12ca95a0cd792291
parent2d37a186cedc51502dbee71c16ae0fbd9114d62c
bonding: introduce primary_reselect option

In some cases there is not desirable to switch back to primary interface when
it's link recovers and rather stay with currently active one. We need to avoid
packetloss as much as we can in some cases. This is solved by introducing
primary_reselect option. Note that enslaved primary slave is set as current
active no matter what.

Patch modified by Jay Vosburgh as follows: fixed bug in action
after change of option setting via sysfs, revised the documentation
update, and bumped the bonding version number.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/bonding.txt
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h