The i40e NIC can recognize many packet types, including ordinary L2 packet format and tunneling packet format such as IP in IP, IP in GRE, MAC in GRE and MAC in UDP.
This patch set provides abstract definitions of packet types, which can help user to use these packet types directly in their applications to speed up receive packet analysis. Moreover, this patch set translates i40e packet types to abstract packet types in i40e driver, and make the corresponding changes in test applications. Jijiang Liu (4): Add packet type and IP header check in rte_mbuf Remove the PKT_RX_TUNNEL_IPV4_HDR and the PKT_RX_TUNNEL_IPV6_HDR Translate i40e packet types Make the corresponding changes in test-pmd app/test-pmd/csumonly.c | 12 +- app/test-pmd/rxonly.c | 15 +- lib/librte_mbuf/rte_mbuf.h | 225 ++++++++++++++- lib/librte_pmd_i40e/i40e_rxtx.c | 604 +++++++++++++++++++++------------------ 4 files changed, 569 insertions(+), 287 deletions(-) -- 1.7.7.6