Tested-by: Min Cao <min.cao at intel.com> - OS: Fedora20 3.11.10-301 - GCC: gcc version 4.8.2 20131212 - CPU: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz - NIC: Ethernet controller: Intel Corporation Device 1572 (rev 01) - Default x86_64-native-linuxapp-gcc configuration - Total 2 cases, 2 passed, 0 failed
- Case: double vlan filter - Case: double vlan insertion > -----Original Message----- > From: Zhang, Helin > Sent: Tuesday, June 2, 2015 11:16 AM > To: dev at dpdk.org > Cc: Cao, Min; Liu, Jijiang; Wu, Jingjing; Ananyev, Konstantin; > Richardson, Bruce; olivier.matz at 6wind.com; Zhang, Helin > Subject: [PATCH v2 0/6] support i40e QinQ stripping and insertion > > As i40e hardware can be reconfigured to support QinQ stripping and > insertion, this patch set is to enable that together with using the > reserved 16 bits in 'struct rte_mbuf' for the second vlan tag. > Corresponding command is added in testpmd for testing. > Note that no need to rework vPMD, as nothings used in it changed. > > v2 changes: > * Added more commit logs of which commit it fix for. > * Fixed a typo. > * Kept the original RX/TX offload flags as they were, added new > flags after with new bit masks, for ABI compatibility. > * Supported double vlan stripping/insertion in examples/ipv4_multicast. > > Helin Zhang (6): > ixgbe: remove a discarded source line > mbuf: use the reserved 16 bits for double vlan > i40e: support double vlan stripping and insertion > i40evf: add supported offload capability flags > app/testpmd: add test cases for qinq stripping and insertion > examples/ipv4_multicast: support double vlan stripping and insertion > > app/test-pmd/cmdline.c | 78 +++++++++++++++++++++++++++++++++---- > app/test-pmd/config.c | 21 +++++++++- > app/test-pmd/flowgen.c | 4 +- > app/test-pmd/macfwd.c | 3 ++ > app/test-pmd/macswap.c | 3 ++ > app/test-pmd/rxonly.c | 3 ++ > app/test-pmd/testpmd.h | 6 ++- > app/test-pmd/txonly.c | 8 +++- > drivers/net/i40e/i40e_ethdev.c | 52 +++++++++++++++++++++++++ > drivers/net/i40e/i40e_ethdev_vf.c | 13 +++++++ > drivers/net/i40e/i40e_rxtx.c | 81 > +++++++++++++++++++++++++-------------- > drivers/net/ixgbe/ixgbe_rxtx.c | 1 - > examples/ipv4_multicast/main.c | 1 + > lib/librte_ether/rte_ethdev.h | 2 + > lib/librte_mbuf/rte_mbuf.h | 10 ++++- > 15 files changed, 243 insertions(+), 43 deletions(-) > > -- > 1.9.3