[dpdk-stable] patch 'usertools: fix refresh binding infos' has been queued to LTS release 18.11.3

Kevin Traynor ktraynor at redhat.com
Fri Aug 23 11:43:31 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 08/28/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/b2826333d2631e1840a3465fb242efc3382c5dd9

Thanks.

Kevin Traynor

---
>From b2826333d2631e1840a3465fb242efc3382c5dd9 Mon Sep 17 00:00:00 2001
From: Timothy Redaelli <tredaelli at redhat.com>
Date: Fri, 31 May 2019 13:11:26 +0200
Subject: [PATCH] usertools: fix refresh binding infos

[ upstream commit 93b93beb123d96e5acbbb24491c491bec47da60d ]

Currently clear_data (dpdk-devbind.py) doesn't work as expected
since "global devices" is missing and so "devices" is considered
a local variable.

This commit changes "clear_data" function in order to really clear
devices by adding "global devices".

Fixes: ea9f00f7289a ("usertools: refactor NIC and crypto binding details")

Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
Acked-by: Luca Boccassi <bluca at debian.org>
Reviewed-by: David Marchand <david.marchand at redhat.com>
---
 usertools/dpdk-devbind.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index a9cd66a78..1c9c0187d 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -204,4 +204,5 @@ def get_pci_device_details(dev_id, probe_lspci):
 def clear_data():
     '''This function clears any old data'''
+    global devices
     devices = {}
 
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-08-22 19:38:23.107944402 +0100
+++ 0041-usertools-fix-refresh-binding-infos.patch	2019-08-22 19:38:20.474025998 +0100
@@ -1 +1 @@
-From 93b93beb123d96e5acbbb24491c491bec47da60d Mon Sep 17 00:00:00 2001
+From b2826333d2631e1840a3465fb242efc3382c5dd9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 93b93beb123d96e5acbbb24491c491bec47da60d ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 5c1cd3548..4791e5f48 100755
+index a9cd66a78..1c9c0187d 100755
@@ -27 +28 @@
-@@ -217,4 +217,5 @@ def get_pci_device_details(dev_id, probe_lspci):
+@@ -204,4 +204,5 @@ def get_pci_device_details(dev_id, probe_lspci):


More information about the stable mailing list