summaryrefslogtreecommitdiff
path: root/drivers/net/i40e/rte_pmd_i40e.c
diff options
context:
space:
mode:
authorBeilei Xing <beilei.xing@intel.com>2018-01-19 15:50:04 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-21 15:51:52 +0100
commita491e0ef4ef71888ff89216bba91268ec91685c2 (patch)
tree362e7813c5d7aa971dffabd764fd4906bbff6125 /drivers/net/i40e/rte_pmd_i40e.c
parentf4c8ad4f97e24af7f6200723ca8d93702f15b1e6 (diff)
downloaddpdk-a491e0ef4ef71888ff89216bba91268ec91685c2.zip
dpdk-a491e0ef4ef71888ff89216bba91268ec91685c2.tar.gz
dpdk-a491e0ef4ef71888ff89216bba91268ec91685c2.tar.xz
net/i40e: fix fail to update packet type table
Fail to update SW ptype mapping table when loading PPP profile, though profile can be loaded successfully. It will cause fail to parse SW ptype during receiving packets. This patch fixes this issue. Fixes: 11556c915a08 ("net/i40e: improve packet type parser") Cc: stable@dpdk.org Signed-off-by: Beilei Xing <beilei.xing@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Diffstat (limited to 'drivers/net/i40e/rte_pmd_i40e.c')
-rw-r--r--drivers/net/i40e/rte_pmd_i40e.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c
index 2cb22d4..5436db4 100644
--- a/drivers/net/i40e/rte_pmd_i40e.c
+++ b/drivers/net/i40e/rte_pmd_i40e.c
@@ -2053,7 +2053,8 @@ static int check_invalid_pkt_type(uint32_t pkt_type)
l2 != RTE_PTYPE_L2_ETHER_LLDP &&
l2 != RTE_PTYPE_L2_ETHER_NSH &&
l2 != RTE_PTYPE_L2_ETHER_VLAN &&
- l2 != RTE_PTYPE_L2_ETHER_QINQ)
+ l2 != RTE_PTYPE_L2_ETHER_QINQ &&
+ l2 != RTE_PTYPE_L2_ETHER_PPPOE)
return -1;
if (l3 &&
@@ -2082,7 +2083,8 @@ static int check_invalid_pkt_type(uint32_t pkt_type)
tnl != RTE_PTYPE_TUNNEL_GENEVE &&
tnl != RTE_PTYPE_TUNNEL_GRENAT &&
tnl != RTE_PTYPE_TUNNEL_GTPC &&
- tnl != RTE_PTYPE_TUNNEL_GTPU)
+ tnl != RTE_PTYPE_TUNNEL_GTPU &&
+ tnl != RTE_PTYPE_TUNNEL_L2TP)
return -1;
if (il2 &&