test/crypto: fix mempool size for session-less
authorAbhinandan Gujjar <abhinandan.gujjar@intel.com>
Sun, 18 Jul 2021 12:18:51 +0000 (17:48 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 20 Jul 2021 08:32:05 +0000 (10:32 +0200)
commitb812567ef6daa2a99a05a38bd79252c97e46078b
tree53e19f894a3271db7781212e6abe4c620ea6ad1f
parent760eedf38d15aec0200f8e58fcba95b3ade30166
test/crypto: fix mempool size for session-less

Currently, private_data_offset for the sessionless is computed
wrongly which includes extra bytes added by
sizeof(struct rte_crypto_sym_xform) * 2. This causes buffer
overflow which leads to test application crash while freeing the
ops mempool. This patch provides fix for the same and also takes
care of increasing the length of ops to accommodate space for
rte_event_crypto_metadata while creating the crypto ops mempool.

Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
Cc: stable@dpdk.org
Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
Reported-by: Ciara Power <ciara.power@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test/test_event_crypto_adapter.c