net/i40e: handle ESP tunnel
authorBernard Iremonger <bernard.iremonger@intel.com>
Thu, 16 Jan 2020 12:44:51 +0000 (12:44 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:59:18 +0000 (19:59 +0100)
handle ESP tunnel in rte_pmd_i40e.c

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/rte_pmd_i40e.c

index b64f553..446e317 100644 (file)
@@ -2172,7 +2172,8 @@ static int check_invalid_pkt_type(uint32_t pkt_type)
            tnl != RTE_PTYPE_TUNNEL_GRENAT &&
            tnl != RTE_PTYPE_TUNNEL_GTPC &&
            tnl != RTE_PTYPE_TUNNEL_GTPU &&
-           tnl != RTE_PTYPE_TUNNEL_L2TP)
+           tnl != RTE_PTYPE_TUNNEL_L2TP &&
+           tnl != RTE_PTYPE_TUNNEL_ESP)
                return -1;
 
        if (il2 &&