DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] eventdev/crypto: add all failed events to circular buffer
@ 2022-11-30 12:50 Ganapati Kundapura
  2022-11-30 15:49 ` Ganapati Kundapura
  0 siblings, 1 reply; 2+ messages in thread
From: Ganapati Kundapura @ 2022-11-30 12:50 UTC (permalink / raw)
  To: dev, jerinj, s.v.naga.harish.k, abhinandan.gujjar
  Cc: jay.jayatheerthan, Stania Bartosz

When many ops are failed to enqueue to eventdev, crypto
adapter stores one event in buffer for later processing.

Add all failed ops to buffer for later processing.

Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel.com>
Signed-off-by: Stania Bartosz <bartoszx.stania@intel.com>

diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index 1c0a22b..c293a62 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -754,7 +754,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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH v1] eventdev/crypto: add all failed events to circular buffer
  2022-11-30 12:50 [PATCH v1] eventdev/crypto: add all failed events to circular buffer Ganapati Kundapura
@ 2022-11-30 15:49 ` Ganapati Kundapura
  0 siblings, 0 replies; 2+ messages in thread
From: Ganapati Kundapura @ 2022-11-30 15:49 UTC (permalink / raw)
  To: dev, jerinj, s.v.naga.harish.k, abhinandan.gujjar; +Cc: jay.jayatheerthan

When many ops are failed to enqueue to eventdev, crypto
adapter stores one event in buffer for later processing.

Add all failed ops to buffer for later processing.

Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel.com>

diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index 1c0a22b..c293a62 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -754,7 +754,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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-30 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 12:50 [PATCH v1] eventdev/crypto: add all failed events to circular buffer Ganapati Kundapura
2022-11-30 15:49 ` Ganapati Kundapura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).