From: Pablo de Lara <pablo.de.lara.guarch@intel.com>
To: declan.doherty@intel.com, ravi1.kumar@amd.com,
ruifeng.wang@arm.com, anoobj@marvell.com,
roy.fan.zhang@intel.com, fiona.trahe@intel.com, tdu@semihalf.com,
rnagadheeraj@marvell.com, adwivedi@marvell.com, g.singh@nxp.com,
hemant.agrawal@nxp.com, jianjay.zhou@huawei.com
Cc: dev@dpdk.org, akhil.goyal@nxp.com,
Pablo de Lara <pablo.de.lara.guarch@intel.com>
Subject: [dpdk-dev] [PATCH v2 3/4] test/crypto: check if device supports out-of-place ops
Date: Thu, 16 Apr 2020 10:25:31 +0100 [thread overview]
Message-ID: <20200416092532.1922099-4-pablo.de.lara.guarch@intel.com> (raw)
In-Reply-To: <20200416092532.1922099-1-pablo.de.lara.guarch@intel.com>
Before running any out-of-place test cases,
check if device supports this mode.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
app/test/test_cryptodev_blockcipher.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c
index 43f9d17da..0c24d70cb 100644
--- a/app/test/test_cryptodev_blockcipher.c
+++ b/app/test/test_cryptodev_blockcipher.c
@@ -168,6 +168,20 @@ test_blockcipher_one_case(const struct blockcipher_test_case *t,
nb_segs = 3;
}
+ if (t->feature_mask & BLOCKCIPHER_TEST_FEATURE_OOP) {
+ uint64_t oop_flags = RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
+ RTE_CRYPTODEV_FF_OOP_LB_IN_SGL_OUT |
+ RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
+ RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT;
+ if (!(feat_flags & oop_flags)) {
+ printf("Device doesn't support out-of-place operations."
+ "Test Skipped.\n");
+ snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN,
+ "SKIPPED");
+ return 0;
+ }
+ }
+
if (tdata->cipher_key.len)
memcpy(cipher_key, tdata->cipher_key.data,
tdata->cipher_key.len);
--
2.25.2
next prev parent reply other threads:[~2020-04-16 13:27 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-14 18:04 [dpdk-dev] [PATCH 0/3] Crypto test refactoring (second phase) Pablo de Lara
2020-04-14 18:04 ` [dpdk-dev] [PATCH 1/3] cryptodev: add sessionless support feature flag Pablo de Lara
2020-04-15 10:38 ` Dybkowski, AdamX
2020-04-14 18:04 ` [dpdk-dev] [PATCH 2/3] test/crypto: check if device supports sessionless Pablo de Lara
2020-04-15 10:38 ` Dybkowski, AdamX
2020-04-14 18:04 ` [dpdk-dev] [PATCH 3/3] test/crypto: do not check for PMD in tests Pablo de Lara
2020-04-15 10:38 ` Dybkowski, AdamX
2020-04-16 8:28 ` [dpdk-dev] [PATCH 0/3] Crypto test refactoring (second phase) Ruifeng Wang
2020-04-16 13:28 ` De Lara Guarch, Pablo
2020-04-16 15:23 ` Ruifeng Wang
2020-04-16 9:25 ` [dpdk-dev] [PATCH v2 0/4] " Pablo de Lara
2020-04-16 9:25 ` [dpdk-dev] [PATCH v2 1/4] cryptodev: add sessionless support feature flag Pablo de Lara
2020-04-16 15:27 ` Ruifeng Wang
2020-04-16 9:25 ` [dpdk-dev] [PATCH v2 2/4] test/crypto: check if device supports sessionless Pablo de Lara
2020-04-16 15:27 ` Ruifeng Wang
2020-04-16 9:25 ` Pablo de Lara [this message]
2020-04-16 13:41 ` [dpdk-dev] [PATCH v2 3/4] test/crypto: check if device supports out-of-place ops Dybkowski, AdamX
2020-04-16 15:28 ` Ruifeng Wang
2020-04-16 9:25 ` [dpdk-dev] [PATCH v2 4/4] test/crypto: do not check for PMD in tests Pablo de Lara
2020-04-16 15:28 ` Ruifeng Wang
2020-04-16 16:52 ` [dpdk-dev] [PATCH v2 0/4] Crypto test refactoring (second phase) Trahe, Fiona
2020-04-19 21:13 ` 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:
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=20200416092532.1922099-4-pablo.de.lara.guarch@intel.com \
--to=pablo.de.lara.guarch@intel.com \
--cc=adwivedi@marvell.com \
--cc=akhil.goyal@nxp.com \
--cc=anoobj@marvell.com \
--cc=declan.doherty@intel.com \
--cc=dev@dpdk.org \
--cc=fiona.trahe@intel.com \
--cc=g.singh@nxp.com \
--cc=hemant.agrawal@nxp.com \
--cc=jianjay.zhou@huawei.com \
--cc=ravi1.kumar@amd.com \
--cc=rnagadheeraj@marvell.com \
--cc=roy.fan.zhang@intel.com \
--cc=ruifeng.wang@arm.com \
--cc=tdu@semihalf.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).