patch 'app/testpmd: fix GTP PSC raw processing' has been queued to stable release 21.11.2

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Jul 12 21:23:49 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/14/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/84b2018842a8d34406f277e586dcda56a5b017ab

Thanks.

Luca Boccassi

---
>From 84b2018842a8d34406f277e586dcda56a5b017ab Mon Sep 17 00:00:00 2001
From: Gregory Etelson <getelson at nvidia.com>
Date: Wed, 6 Jul 2022 19:11:50 +0300
Subject: [PATCH] app/testpmd: fix GTP PSC raw processing

[ upstream commit a942222d56faf55b770a66be177590ed2d96584f ]

Fix GTP PSP extension size initialization.
Clear input buffer.

Fixes: c65282c9aa31 ("app/testpmd: fix GTP PSC raw processing")

Signed-off-by: Gregory Etelson <getelson at nvidia.com>
Acked-by: Aman Singh <aman.deep.singh at intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
---
 app/test-pmd/cmdline_flow.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index e21e0326d9..5c4544a753 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -9210,10 +9210,12 @@ cmd_set_raw_parsed(const struct buffer *in)
 				const struct rte_flow_item_gtp_psc
 					*opt = item->spec;
 				struct rte_gtp_psc_generic_hdr *hdr;
-
-				*total_size += RTE_ALIGN(sizeof(hdr),
+				size_t hdr_size = RTE_ALIGN(sizeof(*hdr),
 							 sizeof(int32_t));
+
+				*total_size += hdr_size;
 				hdr = (typeof(hdr))(data_tail - (*total_size));
+				memset(hdr, 0, hdr_size);
 				*hdr = opt->hdr;
 				hdr->ext_hdr_len = 1;
 				gtp_psc = i;
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-07-12 20:22:33.916944453 +0100
+++ 0006-app-testpmd-fix-GTP-PSC-raw-processing.patch	2022-07-12 20:22:33.725247488 +0100
@@ -1 +1 @@
-From a942222d56faf55b770a66be177590ed2d96584f Mon Sep 17 00:00:00 2001
+From 84b2018842a8d34406f277e586dcda56a5b017ab Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a942222d56faf55b770a66be177590ed2d96584f ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 6cb1173385..7f50028eb7 100644
+index e21e0326d9..5c4544a753 100644
@@ -23 +24 @@
-@@ -11030,10 +11030,12 @@ cmd_set_raw_parsed(const struct buffer *in)
+@@ -9210,10 +9210,12 @@ cmd_set_raw_parsed(const struct buffer *in)


More information about the stable mailing list