From: Chengwen Feng Date: Tue, 13 Apr 2021 11:50:06 +0000 (+0800) Subject: net/hns3: fix missing outer L4 UDP flag for VXLAN X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7d6df32cf742107130efc3cff53849f3cb0ad262;p=dpdk.git net/hns3: fix missing outer L4 UDP flag for VXLAN This patch adds RTE_PTYPE_L4_UDP flag when parsed tunnel vxlan packet. Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Min Hu (Connor) --- diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index 1c22f3412e..3d94f72bf5 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -2051,7 +2051,7 @@ hns3_init_tunnel_ptype_tbl(struct hns3_ptype_table *tbl) tbl->ol3table[5] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT; tbl->ol4table[0] = RTE_PTYPE_UNKNOWN; - tbl->ol4table[1] = RTE_PTYPE_TUNNEL_VXLAN; + tbl->ol4table[1] = RTE_PTYPE_L4_UDP | RTE_PTYPE_TUNNEL_VXLAN; tbl->ol4table[2] = RTE_PTYPE_TUNNEL_NVGRE; }