[dpdk-stable] patch 'examples/ip_frag: fix use of ethdev internal device array' has been queued to LTS release 18.11.3

Kevin Traynor ktraynor at redhat.com
Tue Aug 27 11:30:29 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 09/03/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/f089ac8f1da4bd97c6b9f8d11768375d48b82721

Thanks.

Kevin Traynor

---
>From f089ac8f1da4bd97c6b9f8d11768375d48b82721 Mon Sep 17 00:00:00 2001
From: Marcin Zapolski <marcinx.a.zapolski at intel.com>
Date: Wed, 17 Jul 2019 09:58:05 +0200
Subject: [PATCH] examples/ip_frag: fix use of ethdev internal device array

[ upstream commit 6b7780bfebe4de743c5edbe7a3c7f9fa817789ad ]

Modify ip_fragmentation example app to use rte_eth_info_get instead
of global rte_eth_devices structure.
Apps should not be using internal DPDK data structures directly.

Fixes: 9758b956dcf4 ("examples/ip_fragmentation: fix Tx queues init")

Signed-off-by: Marcin Zapolski <marcinx.a.zapolski at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 examples/ip_fragmentation/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
index b388f3083..8ffcfef80 100644
--- a/examples/ip_fragmentation/main.c
+++ b/examples/ip_fragmentation/main.c
@@ -967,5 +967,5 @@ main(int argc, char **argv)
 				continue;
 
-			if (queueid >= rte_eth_devices[portid].data->nb_tx_queues)
+			if (queueid >= dev_info.nb_tx_queues)
 				break;
 
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-08-27 09:40:13.754115244 +0100
+++ 0052-examples-ip_frag-fix-use-of-ethdev-internal-device-a.patch	2019-08-27 09:40:10.962143368 +0100
@@ -1 +1 @@
-From 6b7780bfebe4de743c5edbe7a3c7f9fa817789ad Mon Sep 17 00:00:00 2001
+From f089ac8f1da4bd97c6b9f8d11768375d48b82721 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6b7780bfebe4de743c5edbe7a3c7f9fa817789ad ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index ccaf23ff0..1b51bf2da 100644
+index b388f3083..8ffcfef80 100644
@@ -23 +24 @@
-@@ -992,5 +992,5 @@ main(int argc, char **argv)
+@@ -967,5 +967,5 @@ main(int argc, char **argv)


More information about the stable mailing list