Skip to content

Commit

Permalink
bbdev: new queue stat for available enqueue depth
Browse files Browse the repository at this point in the history
Capturing additional queue stats counter for the
depth of enqueue batch still available on the given
queue. This can help application to monitor that depth
at run time.

Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
nicolas-chautru authored and mcoquelin committed Sep 13, 2024
1 parent de8c9c5 commit 09f3c66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/guides/rel_notes/release_24_11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ API Changes
ABI Changes
-----------

* bbdev: Structure ``rte_bbdev_stats`` was updated to add new parameter
to optionally report number of enqueue batch available ``enqueue_depth_avail``.

.. This section should contain ABI changes. Sample format:
* sample: Add a short 1-2 sentence description of the ABI change
Expand Down
2 changes: 2 additions & 0 deletions lib/bbdev/rte_bbdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ struct rte_bbdev_stats {
* bbdev operation
*/
uint64_t acc_offload_cycles;
/** Available number of enqueue batch on that queue. */
uint16_t enqueue_depth_avail;
};

/**
Expand Down

0 comments on commit 09f3c66

Please sign in to comment.