]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: enhance L2 hash helper with packet type
authorJianhua Xie <jianhua.xie@freescale.com>
Thu, 17 Jul 2014 06:16:25 +0000 (14:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:03:27 +0000 (16:03 -0700)
commitd8ea913f821b428807a645f0b947b11e27cf4786
treee8c2535833ba5467c2b2a872323d6e33f81f0e56
parentbdfe70630ea696c59671bef3d6703f39a7b43b7e
bonding: enhance L2 hash helper with packet type

Current L2 hash helper calculates destination eth addr and
source ether addr as L2 hash factors.  This patch is adding
packet type ID field into L2 hash factors.  While one of
BOND_XMIT_POLICY_LAYER2 or BOND_XMIT_POLICY_{LAYER|ENCAP}23
is applied, for the 2nd level hash, enhanced hash method can
help to distribute different types of packets like IPv4/IPv6
packets to different slave devices.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: David S. Miller <davem@davemloft.net>
CC: Pan Jiafei <Jiafei.Pan@freescale.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c