mbox series

[v4,0/2] add unsafe API to get inflight packets

Message ID 20210927014259.23892-1-xuan.ding@intel.com (mailing list archive)
Headers show
Series add unsafe API to get inflight packets | expand

Message

Xuan Ding Sept. 27, 2021, 1:42 a.m. UTC
This patchset introduces an unsafe API to get the number of inflight
packets in DMA engine in some situations. Like vring state changes or
device is destroyed. Compared with rte_vhost_async_get_inflight(),
this is a lock free version.

v4:
* Added use case for API in vhost example.

v3:
* Fixed one typo.
* Revised the doc to be more accuracy.

v2:
* Fixed some format issues.

Xuan Ding (2):
  vhost: add unsafe API to check inflight packets
  examples/vhost: use API to check inflight packets

 doc/guides/prog_guide/vhost_lib.rst    |  5 +++++
 doc/guides/rel_notes/release_21_11.rst |  5 +++++
 examples/vhost/main.c                  | 26 +++++++++++---------------
 examples/vhost/main.h                  |  1 -
 lib/vhost/rte_vhost_async.h            | 14 ++++++++++++++
 lib/vhost/version.map                  |  3 +++
 lib/vhost/vhost.c                      | 26 ++++++++++++++++++++++++++
 7 files changed, 64 insertions(+), 16 deletions(-)