summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2019-09-27 13:33:15 +0530
committerAkhil Goyal <akhil.goyal@nxp.com>2019-10-09 11:50:12 +0200
commit616853f9db827949848650e1bbd132d98c27a586 (patch)
treea74c2fb7a33f73b35deb40b32b22902158d4d52b /app
parent131966f876206ae77cd05dabef4040c51aa1e16d (diff)
downloaddpdk-616853f9db827949848650e1bbd132d98c27a586.zip
dpdk-616853f9db827949848650e1bbd132d98c27a586.tar.gz
dpdk-616853f9db827949848650e1bbd132d98c27a586.tar.xz
app/crypto-perf: add check for out-of-place case
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>
Diffstat (limited to 'app')
-rw-r--r--app/test-crypto-perf/cperf_options_parsing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c
index 7a5aa06..eba4cf7 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