Fix for the crash when both crypto_native_plugin and DPDK QAT
are enabled in startup conf.
Type: fix
Signed-off-by: mgovind <govindarajan.mohandoss@arm.com>
Change-Id: Ib020ed7130a99080a093c70c06d47bcacd6d23b1
for (i = 0; i < VNET_CRYPTO_ASYNC_OP_N_IDS; i++)
{
otd = cm->async_opt_data + i;
for (i = 0; i < VNET_CRYPTO_ASYNC_OP_N_IDS; i++)
{
otd = cm->async_opt_data + i;
+ if (otd->active_engine_index_async == ~0)
+ continue;
e = cm->engines + otd->active_engine_index_async;
if (!e->dequeue_handler)
continue;
e = cm->engines + otd->active_engine_index_async;
if (!e->dequeue_handler)
continue;
{
if (ei[0] == last_ei)
continue;
{
if (ei[0] == last_ei)
continue;
+ if (ei[0] == ~0)
+ continue;
e = cm->engines + ei[0];
vec_add1 (cm->dequeue_handlers, e->dequeue_handler);
e = cm->engines + ei[0];
vec_add1 (cm->dequeue_handlers, e->dequeue_handler);