net/bonding: support matching QinQ ethertype
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 7 Aug 2018 08:10:46 +0000 (16:10 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 28 Aug 2018 13:27:39 +0000 (15:27 +0200)
commit763e450ae24d88b87f1eb86643a2897b141d9c07
treeb0d347202dc31ac80e6d119e2484ae3729dc9ee8
parent2c1bbab7f09d42210ad4c9e120c159c3bf038c8f
net/bonding: support matching QinQ ethertype

We assume VLAN ethtertype is 0x8100 in get_vlan_offset() function,
but it could be 0x88A8 if QinQ is supported.

Fixes: 06fe78b98ccd ("bond: add mode 6")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_pmd.c