[dpdk-dev] [PATCH] l2fwd-crypto: skip dev configure for masked devices

Subsystems: the rest

4 messages, 2 authors, 2021-04-13 · open the first message on its own page

[dpdk-dev] [PATCH] l2fwd-crypto: skip dev configure for masked devices

From: Hemant Agrawal <hidden>
Date: 2021-02-23 06:25:06

From: Apeksha Gupta <redacted>

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

Signed-off-by: Apeksha Gupta <redacted>
---
 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 e7a1eea30..656b14036 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -2265,6 +2265,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.17.1

[dpdk-dev] [PATCH] l2fwd-crypto: skip dev configure for masked devices

From: Akhil Goyal <hidden>
Date: 2021-04-05 18:47:56

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

Signed-off-by: Apeksha Gupta <redacted>
---
 examples/l2fwd-crypto/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

again a fixes tag is missing.
title should be
examples/l2fwd-crypto: fix dev configure for masked devices

[dpdk-dev] [PATCH v2] l2fwd-crypto: fix dev configure for masked devices

From: Hemant Agrawal <hidden>
Date: 2021-04-09 13:10:52

From: Apeksha Gupta <redacted>

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")
Cc: stable@dpdk.org

Signed-off-by: Apeksha Gupta <redacted>
---
 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 0ee3e1470a..1016ceb841 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.17.1

Re: [dpdk-dev] [EXT] [PATCH v2] l2fwd-crypto: fix dev configure for masked devices

From: Akhil Goyal <hidden>
Date: 2021-04-13 12:59:40

From: Apeksha Gupta <redacted>

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")
Cc: stable@dpdk.org

Signed-off-by: Apeksha Gupta <redacted>
---
Acked-by: Akhil Goyal <redacted>

Applied to dpdk-next-crypto

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help