* [PATCH v1] eventdev/crypto: wrong crypto enqueue count stats
@ 2022-11-30 15:11 Ganapati Kundapura
2023-02-24 14:41 ` Zhang, Fan
0 siblings, 1 reply; 2+ messages in thread
From: Ganapati Kundapura @ 2022-11-30 15:11 UTC (permalink / raw)
To: dev, jerinj, s.v.naga.harish.k, abhinandan.gujjar; +Cc: jay.jayatheerthan
crypto_enq_count is updated on failure to enqueue ops to cryptodev.
Updated crypto_enq_count on successful enqueue of ops to cryptodev.
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 c293a62..e1a0367 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -485,6 +485,9 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev,
cdev_id,
qp_id,
&nb_enqueued);
+ stats->crypto_enq_count += nb_enqueued;
+ n += nb_enqueued;
+
/**
* If some crypto ops failed to flush to cdev and
* space for another batch is not available, stop
@@ -495,9 +498,6 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev,
&qp_info->cbuf)))
adapter->stop_enq_to_cryptodev = true;
}
-
- stats->crypto_enq_count += nb_enqueued;
- n += nb_enqueued;
}
return n;
--
2.6.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v1] eventdev/crypto: wrong crypto enqueue count stats
2022-11-30 15:11 [PATCH v1] eventdev/crypto: wrong crypto enqueue count stats Ganapati Kundapura
@ 2023-02-24 14:41 ` Zhang, Fan
0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Fan @ 2023-02-24 14:41 UTC (permalink / raw)
To: dev
On 11/30/2022 3:11 PM, Ganapati Kundapura wrote:
> crypto_enq_count is updated on failure to enqueue ops to cryptodev.
>
> Updated crypto_enq_count on successful enqueue of ops to cryptodev.
>
> 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 c293a62..e1a0367 100644
> --- a/lib/eventdev/rte_event_crypto_adapter.c
> +++ b/lib/eventdev/rte_event_crypto_adapter.c
> @@ -485,6 +485,9 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev,
> cdev_id,
> qp_id,
> &nb_enqueued);
> + stats->crypto_enq_count += nb_enqueued;
> + n += nb_enqueued;
> +
> /**
> * If some crypto ops failed to flush to cdev and
> * space for another batch is not available, stop
> @@ -495,9 +498,6 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev,
> &qp_info->cbuf)))
> adapter->stop_enq_to_cryptodev = true;
> }
> -
> - stats->crypto_enq_count += nb_enqueued;
> - n += nb_enqueued;
> }
>
> return n;
Acked-by: Fan Zhang <fanzhang.oss@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-24 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 15:11 [PATCH v1] eventdev/crypto: wrong crypto enqueue count stats Ganapati Kundapura
2023-02-24 14:41 ` Zhang, Fan
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).