patch 'common/cnxk: fix GRE tunnel parsing' has been queued to stable release 21.11.2

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Jul 6 22:34:53 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/08/22. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/bbc9dcaefad10413759dd2c5e628651ba34a1b3a

Thanks.

Luca Boccassi

---
>From bbc9dcaefad10413759dd2c5e628651ba34a1b3a Mon Sep 17 00:00:00 2001
From: Satheesh Paul <psatheesh at marvell.com>
Date: Thu, 23 Jun 2022 09:12:04 +0530
Subject: [PATCH] common/cnxk: fix GRE tunnel parsing

[ upstream commit 3b1a48f1ed8de5ec06e8741a68fa061e206a1427 ]

After parsing GRE tunnel, parse subsequent protocols
(for example, TCP or UDP) as tunneled versions.

Fixes: c34ea71b878 ("common/cnxk: add NPC parsing API")

Signed-off-by: Satheesh Paul <psatheesh at marvell.com>
Reviewed-by: Kiran Kumar K <kirankumark at marvell.com>
---
 drivers/common/cnxk/roc_npc_parse.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/common/cnxk/roc_npc_parse.c b/drivers/common/cnxk/roc_npc_parse.c
index 4f915f3692..9742ac90f7 100644
--- a/drivers/common/cnxk/roc_npc_parse.c
+++ b/drivers/common/cnxk/roc_npc_parse.c
@@ -535,11 +535,13 @@ npc_parse_ld(struct npc_parse_state *pst)
 	case ROC_NPC_ITEM_TYPE_GRE:
 		lt = NPC_LT_LD_GRE;
 		info.len = pst->pattern->size;
+		pst->tunnel = 1;
 		break;
 	case ROC_NPC_ITEM_TYPE_GRE_KEY:
 		lt = NPC_LT_LD_GRE;
 		info.len = pst->pattern->size;
 		info.hw_hdr_len = 4;
+		pst->tunnel = 1;
 		break;
 	case ROC_NPC_ITEM_TYPE_NVGRE:
 		lt = NPC_LT_LD_NVGRE;
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-07-06 21:07:54.179501261 +0100
+++ 0018-common-cnxk-fix-GRE-tunnel-parsing.patch	2022-07-06 21:07:53.551518861 +0100
@@ -1 +1 @@
-From 3b1a48f1ed8de5ec06e8741a68fa061e206a1427 Mon Sep 17 00:00:00 2001
+From bbc9dcaefad10413759dd2c5e628651ba34a1b3a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 3b1a48f1ed8de5ec06e8741a68fa061e206a1427 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 0748646779..ff00c746d6 100644
+index 4f915f3692..9742ac90f7 100644
@@ -22 +23 @@
-@@ -699,11 +699,13 @@ npc_parse_ld(struct npc_parse_state *pst)
+@@ -535,11 +535,13 @@ npc_parse_ld(struct npc_parse_state *pst)


More information about the stable mailing list