DPDK patches and discussions
 help / color / mirror / Atom feed
From: Apeksha Gupta <apeksha.gupta@nxp.com>
To: akhil.goyal@nxp.com
Cc: thomas@monjalon.net, dev@dpdk.org,
	Apeksha Gupta <apeksha.gupta@nxp.com>,
Subject: [dpdk-dev] [PATCH] examples/l2fwd-crypto:skip dev configure for masked devices
Date: Thu, 16 Jan 2020 13:13:32 +0530
Message-ID: <20200116074332.13176-1-apeksha.gupta@nxp.com> (raw)

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

Fixes: 61a7018ba0 ("examples/l2fwd-crypto:skip dev configure for masked devices")
Cc: stable@dpdk.org

Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.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 9b3aa6d07..df48d180a 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -2294,6 +2294,12 @@ initialize_cryptodevs(struct l2fwd_crypto_options *options, unsigned nb_ports,
 		struct rte_cryptodev_qp_conf qp_conf;
 		struct rte_cryptodev_info dev_info;
+		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) {

             reply	other threads:[~2020-01-16  7:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16  7:43 Apeksha Gupta [this message]
2020-01-28  6:12 ` Akhil Goyal
2020-02-04 13:38   ` Akhil Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200116074332.13176-1-apeksha.gupta@nxp.com \
    --to=apeksha.gupta@nxp.com \
    --cc=akhil.goyal@nxp.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    --cc=thomas@monjalon.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git