]> git.droids-corp.org - dpdk.git/commit
vhost: add unsafe API to check in-flight packets
authorXuan Ding <xuan.ding@intel.com>
Fri, 8 Apr 2022 10:22:13 +0000 (10:22 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:15:38 +0000 (21:15 +0200)
commit1419e8d9d88ea90410ba61e68ac49f759d6c5ef9
tree5052ae3f3e35a64244bd70af6086918b318fd244
parent9dc6bb06824f3c5887f0436ddba5ab9116cb277e
vhost: add unsafe API to check in-flight packets

In async data path, when vring state changes or device is destroyed,
it is necessary to know the number of in-flight packets in DMA engine.
This patch provides a thread unsafe API to return the number of
in-flight packets for a vhost queue without using any lock.

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/prog_guide/vhost_lib.rst
doc/guides/rel_notes/release_22_07.rst
lib/vhost/rte_vhost_async.h
lib/vhost/version.map
lib/vhost/vhost.c