]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: ignore updelay param when there is no active slave
authorJiri Pirko <jpirko@redhat.com>
Fri, 24 Apr 2009 03:57:29 +0000 (03:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2009 09:57:44 +0000 (02:57 -0700)
commit7c463d77601794e12aca3d8bb4f569e75d87b2a6
treee87ed3d7c858f1ebb00cfd5c5159da31ffc0af44
parent5d93aff3525d44e0d389deeb52af40d2aec1edda
bonding: ignore updelay param when there is no active slave

Pointed out by Sean E. Millichamp.

Quote from Documentation/networking/bonding.txt:
"Note that when a bonding interface has no active links, the
driver will immediately reuse the first link that goes up, even if the
updelay parameter has been specified (the updelay is ignored in this
case).  If there are slave interfaces waiting for the updelay timeout
to expire, the interface that first went into that state will be
immediately reused.  This reduces down time of the network if the
value of updelay has been overestimated, and since this occurs only in
cases with no connectivity, there is no additional penalty for
ignoring the updelay."

This patch actually changes the behaviour in this way.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
 drivers/net/bonding/bond_main.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c