Update DPDK version from 19.11 to 20.11 and also support hns3 PMD for Kunpeng 920 and Kunpeng 930. Signed-off-by: speech_white <humin29@huawei.com>
55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From 93de9a96a68093772f0137a9899616cfd8cea0c6 Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Wed, 3 Feb 2021 20:23:51 +0800
|
|
Subject: [PATCH 037/189] net/hns3: remove MPLS from supported flow items
|
|
|
|
The Kunpeng920 and Kunpeng930 don't support parse MPLS packet, so
|
|
remove the type from supported flow items.
|
|
|
|
Fixes: fcba820d9b9e ("net/hns3: support flow director")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
Signed-off-by: Lijun Ou <oulijun@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_flow.c | 9 +++------
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c
|
|
index a601124..c484114 100644
|
|
--- a/drivers/net/hns3/hns3_flow.c
|
|
+++ b/drivers/net/hns3/hns3_flow.c
|
|
@@ -44,8 +44,7 @@ static enum rte_flow_item_type first_items[] = {
|
|
RTE_FLOW_ITEM_TYPE_NVGRE,
|
|
RTE_FLOW_ITEM_TYPE_VXLAN,
|
|
RTE_FLOW_ITEM_TYPE_GENEVE,
|
|
- RTE_FLOW_ITEM_TYPE_VXLAN_GPE,
|
|
- RTE_FLOW_ITEM_TYPE_MPLS
|
|
+ RTE_FLOW_ITEM_TYPE_VXLAN_GPE
|
|
};
|
|
|
|
static enum rte_flow_item_type L2_next_items[] = {
|
|
@@ -65,8 +64,7 @@ static enum rte_flow_item_type L3_next_items[] = {
|
|
static enum rte_flow_item_type L4_next_items[] = {
|
|
RTE_FLOW_ITEM_TYPE_VXLAN,
|
|
RTE_FLOW_ITEM_TYPE_GENEVE,
|
|
- RTE_FLOW_ITEM_TYPE_VXLAN_GPE,
|
|
- RTE_FLOW_ITEM_TYPE_MPLS
|
|
+ RTE_FLOW_ITEM_TYPE_VXLAN_GPE
|
|
};
|
|
|
|
static enum rte_flow_item_type tunnel_next_items[] = {
|
|
@@ -1118,8 +1116,7 @@ is_tunnel_packet(enum rte_flow_item_type type)
|
|
if (type == RTE_FLOW_ITEM_TYPE_VXLAN_GPE ||
|
|
type == RTE_FLOW_ITEM_TYPE_VXLAN ||
|
|
type == RTE_FLOW_ITEM_TYPE_NVGRE ||
|
|
- type == RTE_FLOW_ITEM_TYPE_GENEVE ||
|
|
- type == RTE_FLOW_ITEM_TYPE_MPLS)
|
|
+ type == RTE_FLOW_ITEM_TYPE_GENEVE)
|
|
return true;
|
|
return false;
|
|
}
|
|
--
|
|
2.7.4
|
|
|