]> git.droids-corp.org - dpdk.git/commit
test/crypto-perf: fix memory allocation in asym case
authorKiran Kumar K <kirankumark@marvell.com>
Fri, 29 Oct 2021 04:36:58 +0000 (10:06 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:46:27 +0000 (19:46 +0100)
commit9603e432bdf24712e1c2fc53f253b4e53ff4be7d
treed41bdc88d61f8d2d6e23b9d532b90b2f2617c993
parent3f956cea85aee3b19d5a9b041508fdb6c72af417
test/crypto-perf: fix memory allocation in asym case

While populating the crypto ops in case of asymmetric, result
is being allocated from stack. This is causing crash in the
application. And operation type is also not being initialized
properly. Adding a fix by allocating the result from global
memory and initialized the operation memory properly.

Fixes: ba588ce3f9339 ("test/crypto-perf: test asymmetric crypto throughput")
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test-crypto-perf/cperf_ops.c
app/test-crypto-perf/cperf_test_common.c
app/test-crypto-perf/cperf_test_vectors.c
app/test-crypto-perf/cperf_test_vectors.h