From: Aakash Sasidharan <asasidharan@marvell.com>
To: Abhinandan Gujjar <abhinandan.gujjar@intel.com>,
Akhil Goyal <gakhil@marvell.com>
Cc: <jerinj@marvell.com>, <sthotton@marvell.com>,
<anoobj@marvell.com>, <dev@dpdk.org>, <asasidharan@marvell.com>
Subject: [PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation
Date: Tue, 22 Aug 2023 18:46:49 +0530 [thread overview]
Message-ID: <20230822131649.3509986-3-asasidharan@marvell.com> (raw)
In-Reply-To: <20230822131649.3509986-1-asasidharan@marvell.com>
Create crypto null device only if no other crypto devices
were found.
Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
Cc: abhinandan.gujjar@intel.com
Signed-off-by: Aakash Sasidharan <asasidharan@marvell.com>
---
app/test/test_event_crypto_adapter.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c
index 00b20fa443..0c56744ba0 100644
--- a/app/test/test_event_crypto_adapter.c
+++ b/app/test/test_event_crypto_adapter.c
@@ -1072,11 +1072,10 @@ configure_cryptodev(void)
return TEST_FAILED;
}
- /* Create a NULL crypto device */
- nb_devs = rte_cryptodev_device_count_by_driver(
- rte_cryptodev_driver_id_get(
- RTE_STR(CRYPTODEV_NAME_NULL_PMD)));
+
+ nb_devs = rte_cryptodev_count();
if (!nb_devs) {
+ /* Create a NULL crypto device */
ret = rte_vdev_init(
RTE_STR(CRYPTODEV_NAME_NULL_PMD), NULL);
--
2.25.1
next prev parent reply other threads:[~2023-08-22 13:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 13:16 [PATCH 1/3] event/cnxk: fix return values for capability API Aakash Sasidharan
2023-08-22 13:16 ` [PATCH 2/3] test/event_crypto_adapter: skip unsupported test Aakash Sasidharan
2023-08-23 4:01 ` Anoob Joseph
2023-08-23 4:33 ` Gujjar, Abhinandan S
2023-08-23 7:48 ` Aakash Sasidharan
2023-08-23 8:16 ` Aakash Sasidharan
2023-08-23 8:37 ` Gujjar, Abhinandan S
2023-08-22 13:16 ` Aakash Sasidharan [this message]
2023-08-23 4:00 ` [PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation Anoob Joseph
2023-08-23 4:48 ` Gujjar, Abhinandan S
2023-08-23 5:47 ` Anoob Joseph
2023-08-23 6:17 ` Gujjar, Abhinandan S
2023-08-23 14:20 ` Jerin Jacob
2023-08-23 3:59 ` [PATCH 1/3] event/cnxk: fix return values for capability API Anoob Joseph
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230822131649.3509986-3-asasidharan@marvell.com \
--to=asasidharan@marvell.com \
--cc=abhinandan.gujjar@intel.com \
--cc=anoobj@marvell.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=jerinj@marvell.com \
--cc=sthotton@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).