l2fwd-crypto: skip dev configure for masked devices
Checks
Commit Message
From: Apeksha Gupta <apeksha.gupta@nxp.com>
The devices which are masked by cryptodev mask should not be initialized
and skipped while traversing the device list.
Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com>
---
examples/l2fwd-crypto/main.c | 6 ++++++
1 file changed, 6 insertions(+)
Comments
The devices which are masked by cryptodev mask should not be initialized
and skipped while traversing the device list.
Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com>
---
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
@@ -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) {