[dpdk-stable] patch 'ethdev: remove unused variable' has been queued to LTS release 18.11.2

Kevin Traynor ktraynor at redhat.com
Wed Apr 10 18:43:24 CEST 2019


Hi,

FYI, your patch has been queued to LTS release 18.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 04/16/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.

Thanks.

Kevin Traynor

---
>From bbca79a51b9a6b318d66a7c4cd734ae40bdde92c Mon Sep 17 00:00:00 2001
From: Thomas Monjalon <thomas at monjalon.net>
Date: Thu, 14 Feb 2019 17:29:20 +0100
Subject: [PATCH] ethdev: remove unused variable

[ upstream commit a3a4aba4b5c54e2a81daa792f49bb9743142c444 ]

When removing the old attach function, the racy variable for getting
the last port id became unused.

Fixes: c9cce42876f5 ("ethdev: remove deprecated attach/detach functions")

Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 lib/librte_ethdev/rte_ethdev.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c
index 9d5107dce..e901ca3d1 100644
--- a/lib/librte_ethdev/rte_ethdev.c
+++ b/lib/librte_ethdev/rte_ethdev.c
@@ -49,5 +49,4 @@ int rte_eth_dev_logtype;
 static const char *MZ_RTE_ETH_DEV_DATA = "rte_eth_dev_data";
 struct rte_eth_dev rte_eth_devices[RTE_MAX_ETHPORTS];
-static uint16_t eth_dev_last_created_port;
 
 /* spinlock for eth device callbacks */
@@ -432,6 +431,4 @@ eth_dev_get(uint16_t port_id)
 	eth_dev->data = &rte_eth_dev_shared_data->data[port_id];
 
-	eth_dev_last_created_port = port_id;
-
 	return eth_dev;
 }
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-04-10 14:06:09.288777161 +0100
+++ 0016-ethdev-remove-unused-variable.patch	2019-04-10 14:06:07.824295159 +0100
@@ -1,13 +1,14 @@
-From a3a4aba4b5c54e2a81daa792f49bb9743142c444 Mon Sep 17 00:00:00 2001
+From bbca79a51b9a6b318d66a7c4cd734ae40bdde92c Mon Sep 17 00:00:00 2001
 From: Thomas Monjalon <thomas at monjalon.net>
 Date: Thu, 14 Feb 2019 17:29:20 +0100
 Subject: [PATCH] ethdev: remove unused variable
 
+[ upstream commit a3a4aba4b5c54e2a81daa792f49bb9743142c444 ]
+
 When removing the old attach function, the racy variable for getting
 the last port id became unused.
 
 Fixes: c9cce42876f5 ("ethdev: remove deprecated attach/detach functions")
-Cc: stable at dpdk.org
 
 Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
 Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>
@@ -16,7 +17,7 @@
  1 file changed, 3 deletions(-)
 
 diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c
-index 0d192a24b..85c179496 100644
+index 9d5107dce..e901ca3d1 100644
 --- a/lib/librte_ethdev/rte_ethdev.c
 +++ b/lib/librte_ethdev/rte_ethdev.c
 @@ -49,5 +49,4 @@ int rte_eth_dev_logtype;


More information about the stable mailing list