[dpdk-stable] patch 'app/testpmd: fix uninitialized members of MPLS' has been queued to LTS release 18.11.7

Kevin Traynor ktraynor at redhat.com
Fri Feb 14 18:03:21 CET 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.7

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/20/20. 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-queue

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

Thanks.

Kevin.

---
>From 2f1a2defab638d4ead5d07720c488966608fafc2 Mon Sep 17 00:00:00 2001
From: Ori Kam <orika at mellanox.com>
Date: Thu, 30 Jan 2020 16:59:35 +0000
Subject: [PATCH] app/testpmd: fix uninitialized members of MPLS

[ upstream commit 56d5c1eedf22a1d384120466e6004faf9933d113 ]

Some of the members of the MPLS struct are not initialized.
This commit init the uninitialized members.

Coverity issue: 325735
Fixes: 3e77031be855 ("app/testpmd: add MPLSoGRE encapsulation")

Signed-off-by: Ori Kam <orika at mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 app/test-pmd/cmdline_flow.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index d1fd273272..daba39ddfc 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -3857,5 +3857,7 @@ parse_vc_action_mplsogre_decap(struct context *ctx, const struct token *token,
 		.protocol = rte_cpu_to_be_16(ETHER_TYPE_MPLS_UNICAST),
 	};
-	struct rte_flow_item_mpls mpls;
+	struct rte_flow_item_mpls mpls = {
+		.ttl = 0,
+	};
 	uint8_t *header;
 	int ret;
-- 
2.21.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-02-14 17:02:38.539444332 +0000
+++ 0027-app-testpmd-fix-uninitialized-members-of-MPLS.patch	2020-02-14 17:02:36.997406978 +0000
@@ -1 +1 @@
-From 56d5c1eedf22a1d384120466e6004faf9933d113 Mon Sep 17 00:00:00 2001
+From 2f1a2defab638d4ead5d07720c488966608fafc2 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 56d5c1eedf22a1d384120466e6004faf9933d113 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index e99e24c29f..c2cc4c57b8 100644
+index d1fd273272..daba39ddfc 100644
@@ -23 +24 @@
-@@ -4577,5 +4577,7 @@ parse_vc_action_mplsogre_encap(struct context *ctx, const struct token *token,
+@@ -3857,5 +3857,7 @@ parse_vc_action_mplsogre_decap(struct context *ctx, const struct token *token,



More information about the stable mailing list