bond: remove offload flags from transmit policy checks
authorDeclan Doherty <declan.doherty@intel.com>
Fri, 30 Jan 2015 17:02:17 +0000 (17:02 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 Feb 2015 11:30:33 +0000 (12:30 +0100)
commitecd9d5193b85f22ff3d5fa76fb26d1363b293d94
tree6751c7c8396d043e4d499544182f80af9a2dc36c
parentac1593b22a05525ecabb99fb40dae1da368d6752
bond: remove offload flags from transmit policy checks

The Link bonding library is incorrectly using receive packet type flags
in the transmit policy hashing functions, which would cause packets
generated locally to be incorrectly distributed across the slave
devices. This patch completely removes the dependency on the packet
type flags and uses the ether_type from either the Ethernet header or
the VLAN headers for branching.

This patch also includes the associate changes in the test suite and in
the packet_burst_generator code to remove the dependences on the packet
type flags.

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
app/test/packet_burst_generator.c
app/test/packet_burst_generator.h
app/test/test_link_bonding.c
app/test/test_pmd_perf.c
lib/librte_pmd_bond/rte_eth_bond_pmd.c