[dpdk-stable] patch 'rawdev: fill NUMA socket ID in info' has been queued to stable release 19.11.4

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Jul 24 13:58:45 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.4

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

Thanks.

Luca Boccassi

---
>From a5cb10a2284eb486f28902dea07bc7379bf4b2dd Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Mon, 6 Jul 2020 11:31:31 +0100
Subject: [PATCH] rawdev: fill NUMA socket ID in info

[ upstream commit 26892215922595e117f19e522bf05183213392ff ]

The rawdev info struct has a socket_id field which was not filled in.

We can also omit the checks for the parameter struct being null, since
that is previously checked in the function.

Fixes: c88b3f2558ed ("rawdev: introduce raw device library")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
 lib/librte_rawdev/rte_rawdev.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c
index f6efa6b67..fe289cefd 100644
--- a/lib/librte_rawdev/rte_rawdev.c
+++ b/lib/librte_rawdev/rte_rawdev.c
@@ -94,11 +94,9 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info)
 		(*rawdev->dev_ops->dev_info_get)(rawdev, dev_info->dev_private);
 	}
 
-	if (dev_info) {
-
-		dev_info->driver_name = rawdev->driver_name;
-		dev_info->device = rawdev->device;
-	}
+	dev_info->driver_name = rawdev->driver_name;
+	dev_info->device = rawdev->device;
+	dev_info->socket_id = rawdev->socket_id;
 
 	return 0;
 }
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-07-24 12:53:51.910614413 +0100
+++ 0087-rawdev-fill-NUMA-socket-ID-in-info.patch	2020-07-24 12:53:48.311006907 +0100
@@ -1,15 +1,16 @@
-From 26892215922595e117f19e522bf05183213392ff Mon Sep 17 00:00:00 2001
+From a5cb10a2284eb486f28902dea07bc7379bf4b2dd Mon Sep 17 00:00:00 2001
 From: Bruce Richardson <bruce.richardson at intel.com>
 Date: Mon, 6 Jul 2020 11:31:31 +0100
 Subject: [PATCH] rawdev: fill NUMA socket ID in info
 
+[ upstream commit 26892215922595e117f19e522bf05183213392ff ]
+
 The rawdev info struct has a socket_id field which was not filled in.
 
 We can also omit the checks for the parameter struct being null, since
 that is previously checked in the function.
 
 Fixes: c88b3f2558ed ("rawdev: introduce raw device library")
-Cc: stable at dpdk.org
 
 Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
 Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
@@ -18,10 +19,10 @@
  1 file changed, 3 insertions(+), 5 deletions(-)
 
 diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c
-index e634a567f..8f84d0b22 100644
+index f6efa6b67..fe289cefd 100644
 --- a/lib/librte_rawdev/rte_rawdev.c
 +++ b/lib/librte_rawdev/rte_rawdev.c
-@@ -92,11 +92,9 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info)
+@@ -94,11 +94,9 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info)
  		(*rawdev->dev_ops->dev_info_get)(rawdev, dev_info->dev_private);
  	}
  


More information about the stable mailing list