]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Do not try to send packets over dead link in TLB mode.
authorMahesh Bandewar <maheshb@google.com>
Wed, 16 Jul 2014 18:10:36 +0000 (11:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:35:35 +0000 (23:35 -0700)
commit2f3cb90eae2bf0a762a48e92117849c3c991efc8
tree5fc8e6faf88ebdcd138efd3b4fc219155e1eb356
parente13d5e362bcf214c684ffbef06ad526fa8026bc9
bonding: Do not try to send packets over dead link in TLB mode.

In TLB mode if tlb_dynamic_lb is NOT set, slaves from the bond
group are selected based on the hash distribution. This does not
exclude dead links which are part of the bond. Also if there is a
temporary link event which brings down the interface, packets
hashed on that interface would be dropped too.

This patch fixes these issues and distributes flows across the
UP links only. Also the array construction of links which are
capable of sending packets happen in the control path leaving
only link-selection during the data-path.

One possible side effect of this is - at a link event; all
flows will be shuffled to get good distribution. But impact of
this should be minimum with the assumption that a member or
members of the bond group are not available is a very temporary
situation.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_alb.h
drivers/net/bonding/bonding.h