[dpdk-stable] patch 'examples/multi_process: do not dereference global config' has been queued to LTS release 18.11.3

Kevin Traynor ktraynor at redhat.com
Fri Jun 21 18:46:03 CEST 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.3

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

Thanks.

Kevin Traynor

---
>From 21771b74a49563fcc06752148160351dd50d5eb6 Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Wed, 15 May 2019 09:54:21 +0200
Subject: [PATCH] examples/multi_process: do not dereference global config
 struct

[ upstream commit 200bc52e5aa0d72e70464c9cd22b55cf536ed13c ]

Prefer the existing apis rather than direct access the configuration
structure.

Fixes: af75078fece3 ("first public release")

Signed-off-by: David Marchand <david.marchand at redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 examples/multi_process/symmetric_mp/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c
index c310e942b..62771e036 100644
--- a/examples/multi_process/symmetric_mp/main.c
+++ b/examples/multi_process/symmetric_mp/main.c
@@ -272,5 +272,5 @@ assign_ports_to_cores(void)
 {
 
-	const unsigned lcores = rte_eal_get_configuration()->lcore_count;
+	const unsigned int lcores = rte_lcore_count();
 	const unsigned port_pairs = num_ports / 2;
 	const unsigned pairs_per_lcore = port_pairs / lcores;
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-06-21 17:22:12.739193573 +0100
+++ 0019-examples-multi_process-do-not-dereference-global-con.patch	2019-06-21 17:22:11.731518943 +0100
@@ -1 +1 @@
-From 200bc52e5aa0d72e70464c9cd22b55cf536ed13c Mon Sep 17 00:00:00 2001
+From 21771b74a49563fcc06752148160351dd50d5eb6 Mon Sep 17 00:00:00 2001
@@ -6,0 +7,2 @@
+[ upstream commit 200bc52e5aa0d72e70464c9cd22b55cf536ed13c ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list