[dpdk-stable] patch 'examples/l2fwd-crypto: skip masked devices' has been queued to stable release 20.11.2

Xueming Li xuemingl at nvidia.com
Mon May 10 18:02:02 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.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 05/12/21. 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/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/9c07408cef235f7785fd06880d206e4106b1c2c7

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 9c07408cef235f7785fd06880d206e4106b1c2c7 Mon Sep 17 00:00:00 2001
From: Apeksha Gupta <apeksha.gupta at nxp.com>
Date: Fri, 9 Apr 2021 18:39:14 +0530
Subject: [PATCH] examples/l2fwd-crypto: skip masked devices
Cc: Luca Boccassi <bluca at debian.org>

[ upstream commit 58266cc91efbf45e24fee3a15e23816da6941501 ]

The devices which are masked by cryptodev mask should not be initialized
and skipped while traversing the device list.

Fixes: 6ae3fb9df66e ("examples/l2fwd-crypto: fix session mempool size")

Signed-off-by: Apeksha Gupta <apeksha.gupta at nxp.com>
Acked-by: Akhil Goyal <gakhil at marvell.com>
---
 examples/l2fwd-crypto/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index a96cb94cc4..12bd1812f5 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -2251,6 +2251,12 @@ initialize_cryptodevs(struct l2fwd_crypto_options *options, unsigned nb_ports,
 		if (enabled_cdevs[cdev_id] == 0)
 			continue;
 
+		if (check_cryptodev_mask(options, cdev_id) < 0)
+			continue;
+
+		if (check_capabilities(options, cdev_id) < 0)
+			continue;
+
 		retval = rte_cryptodev_socket_id(cdev_id);
 
 		if (retval < 0) {
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-05-10 23:59:31.072339000 +0800
+++ 0174-examples-l2fwd-crypto-skip-masked-devices.patch	2021-05-10 23:59:26.610000000 +0800
@@ -1 +1 @@
-From 58266cc91efbf45e24fee3a15e23816da6941501 Mon Sep 17 00:00:00 2001
+From 9c07408cef235f7785fd06880d206e4106b1c2c7 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Luca Boccassi <bluca at debian.org>
+
+[ upstream commit 58266cc91efbf45e24fee3a15e23816da6941501 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index 0ee3e1470a..1016ceb841 100644
+index a96cb94cc4..12bd1812f5 100644


More information about the stable mailing list