DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 3/3] app/crypto-perf: add check for out-of-place case
@ 2019-09-27  8:03 Hemant Agrawal
  2019-10-04  7:03 ` Akhil Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Hemant Agrawal @ 2019-09-27  8:03 UTC (permalink / raw)
  To: akhil.goyal, dev; +Cc: Hemant Agrawal

Segmented frames not supported for out-of-place case.
This patch returns err if such config is requested.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 app/test-crypto-perf/cperf_options_parsing.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c
index 7a5aa06a6..eba4cf7a6 100644
--- a/app/test-crypto-perf/cperf_options_parsing.c
+++ b/app/test-crypto-perf/cperf_options_parsing.c
@@ -964,6 +964,13 @@ cperf_options_check(struct cperf_options *options)
 	if (options->op_type == CPERF_CIPHER_ONLY)
 		options->digest_sz = 0;
 
+	if (options->out_of_place &&
+			options->segment_sz <= options->max_buffer_size) {
+		RTE_LOG(ERR, USER1, "Out of place mode can only work "
+					"with non segmented buffers\n");
+		return -EINVAL;
+	}
+
 	/*
 	 * If segment size is not set, assume only one segment,
 	 * big enough to contain the largest buffer and the digest
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH 3/3] app/crypto-perf: add check for out-of-place case
  2019-09-27  8:03 [dpdk-dev] [PATCH 3/3] app/crypto-perf: add check for out-of-place case Hemant Agrawal
@ 2019-10-04  7:03 ` Akhil Goyal
  0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2019-10-04  7:03 UTC (permalink / raw)
  To: Hemant Agrawal, dev; +Cc: Hemant Agrawal

> 
> Segmented frames not supported for out-of-place case.
> This patch returns err if such config is requested.
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> ---
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

Applied to dpdk-next-crypto

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-04  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-27  8:03 [dpdk-dev] [PATCH 3/3] app/crypto-perf: add check for out-of-place case Hemant Agrawal
2019-10-04  7:03 ` Akhil Goyal

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).