Circular buffer stores events failed to enqueue to eventdev for
retrying later. Current implementation adds the same crypto op
to circular buffer instead of pointing all the ops in a batch.
This fix updates the pointer to pointing to correct ops in the batch.
Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation")
Signed-off-by: Ganapati Kundapura <[email protected]>
---
v3:
* Updated commit message
v2:
* Updated subject line commit message
diff --git a/lib/eventdev/rte_event_crypto_adapter.c
b/lib/eventdev/rte_event_crypto_adapter.c
index 31b8255..5d962a1 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -753,7 +753,7 @@ eca_crypto_adapter_deq_run(struct event_crypto_adapter
*adapter,
for (i = nb_enqueued; i < n; i++)
eca_circular_buffer_add(
&adapter->ebuf,
- ops[nb_enqueued]);
+ ops[i]);
check:
nb_deq += n;
--
2.6.4