From: Chengwen Feng Date: Tue, 13 Apr 2021 11:50:11 +0000 (+0800) Subject: net/hns3: remove VLAN/QinQ ptypes from support list X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e316530d79da684656d740b90d5ece07504445e7;p=dpdk.git net/hns3: remove VLAN/QinQ ptypes from support list In the previous patch, driver will calculate packet type by ignoring VLAN information because the packet type may calculate error when exist VLAN and VLAN strip. So here remove the following ptypes from support list: 1) RTE_PTYPE_L2_ETHER_VLAN 2) RTE_PTYPE_L2_ETHER_QINQ 3) RTE_PTYPE_INNER_L2_ETHER_VLAN 4) RTE_PTYPE_INNER_L2_ETHER_QINQ 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 bc3640d696..bec7fae1d1 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -1962,8 +1962,6 @@ hns3_dev_supported_ptypes_get(struct rte_eth_dev *dev) { static const uint32_t ptypes[] = { RTE_PTYPE_L2_ETHER, - RTE_PTYPE_L2_ETHER_VLAN, - RTE_PTYPE_L2_ETHER_QINQ, RTE_PTYPE_L2_ETHER_LLDP, RTE_PTYPE_L2_ETHER_ARP, RTE_PTYPE_L3_IPV4, @@ -1977,8 +1975,6 @@ hns3_dev_supported_ptypes_get(struct rte_eth_dev *dev) RTE_PTYPE_L4_UDP, RTE_PTYPE_TUNNEL_GRE, RTE_PTYPE_INNER_L2_ETHER, - RTE_PTYPE_INNER_L2_ETHER_VLAN, - RTE_PTYPE_INNER_L2_ETHER_QINQ, RTE_PTYPE_INNER_L3_IPV4, RTE_PTYPE_INNER_L3_IPV6, RTE_PTYPE_INNER_L3_IPV4_EXT,