[dpdk-dev] [PATCH v3] vhost: add unsafe API to check inflight packets
Kevin Traynor
ktraynor at redhat.com
Tue Sep 21 19:27:36 CEST 2021
On 16/09/2021 03:58, Xuan Ding wrote:
> In async data path, when vring state changes, it is necessary to
> know the number of inflight packets in DMA engine. This patch
> provides a thread unsafe API to return the number of inflight
> packets without using any lock.
>
> Signed-off-by: Xuan Ding <xuan.ding at intel.com>
> ---
> v3:
> * Fixed one typo.
> * Revised the doc to be more accuracy.
>
> v2:
> * Fixed some format issues.
> ---
> doc/guides/prog_guide/vhost_lib.rst | 5 +++++
> doc/guides/rel_notes/release_21_11.rst | 5 +++++
> lib/vhost/rte_vhost_async.h | 14 ++++++++++++++
> lib/vhost/version.map | 3 +++
> lib/vhost/vhost.c | 26 ++++++++++++++++++++++++++
> 5 files changed, 53 insertions(+)
>
<snip>
Should there be a change to the vring_state_changed() in vhost example
app to go along with this patch? It would help to understand the
operation if this API was used.
More information about the dev
mailing list