Drop the failed enqueue count since that is best tracked by the
application so that retries of the same job can be counted as desired by
the app developer. Since the "doorbell" function is separate from the
actual functions to enqueue descriptors, track a separate stat for jobs
which were submitted to hardware, in case the "enqueued" count includes
jobs which were not yet "doorbelled".

Signed-off-by: Bruce Richardson <bruce.richard...@intel.com>
---
 lib/dmadev/rte_dmadev.h | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h
index eb78f3805..bdb531a53 100644
--- a/lib/dmadev/rte_dmadev.h
+++ b/lib/dmadev/rte_dmadev.h
@@ -768,14 +768,10 @@ rte_dmadev_completed_fails(uint16_t dev_id, uint16_t 
vq_id,
 }
 
 struct rte_dmadev_stats {
-       uint64_t enqueue_fail_count;
-       /**< Conut of all operations which failed enqueued */
-       uint64_t enqueued_count;
-       /**< Count of all operations which successful enqueued */
-       uint64_t completed_fail_count;
-       /**< Count of all operations which failed to complete */
-       uint64_t completed_count;
-       /**< Count of all operations which successful complete */
+       uint64_t enqueued_count;       /**< Count of operations which were 
successful enqueued */
+       uint64_t submitted_count;      /**< Count of operations which were 
submitted to hardware */
+       uint64_t completed_fail_count; /**< Count of operations which failed to 
complete */
+       uint64_t completed_count;      /**< Count of operations which 
successful complete */
 };
 
 /**
-- 
2.30.2

Reply via email to