patch 'examples/ipsec-secgw: fix socket ID default value' has been queued to stable release 22.11.3

Xueming Li xuemingl at nvidia.com
Thu Aug 10 02:06:48 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.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/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=a7c9ea561887851f35ee445836b8eb6e77664389

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From a7c9ea561887851f35ee445836b8eb6e77664389 Mon Sep 17 00:00:00 2001
From: Kai Ji <kai.ji at intel.com>
Date: Thu, 6 Jul 2023 11:00:34 +0000
Subject: [PATCH] examples/ipsec-secgw: fix socket ID default value
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 11fa58505d34c1139450b735c59ee67934310bcb ]

Due to recent changes to the default device socket ID, before
being used as an index for session mempool list,
set socket ID to 0 if unknown (-1).

Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default")

Signed-off-by: Kai Ji <kai.ji at intel.com>
Acked-by: Ciara Power <ciara.power at intel.com>
Acked-by: Akhil Goyal <gakhil at marvell.com>
---
 examples/ipsec-secgw/ipsec-secgw.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index ea662797a8..82a4916fb2 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -1699,6 +1699,9 @@ cryptodevs_init(enum eh_pkt_transfer_mode mode)
 
 		total_nb_qps += qp;
 		dev_conf.socket_id = rte_cryptodev_socket_id(cdev_id);
+		/* Use the first socket if SOCKET_ID_ANY is returned. */
+		if (dev_conf.socket_id == SOCKET_ID_ANY)
+			dev_conf.socket_id = 0;
 		dev_conf.nb_queue_pairs = qp;
 		dev_conf.ff_disable = RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO;
 
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-08-09 21:51:20.734941800 +0800
+++ 0099-examples-ipsec-secgw-fix-socket-ID-default-value.patch	2023-08-09 21:51:18.264352000 +0800
@@ -1 +1 @@
-From 11fa58505d34c1139450b735c59ee67934310bcb Mon Sep 17 00:00:00 2001
+From a7c9ea561887851f35ee445836b8eb6e77664389 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 11fa58505d34c1139450b735c59ee67934310bcb ]
@@ -11 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +23 @@
-index 029749e522..72b3bfba9e 100644
+index ea662797a8..82a4916fb2 100644


More information about the stable mailing list