mbox series

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

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

Message

Ding, Xuan Sept. 28, 2021, 3:55 p.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.

v6:
* Fixed an issue of infinite loop.

v5:
* Rebased to the lastest branch.

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                  | 31 ++++++++++++++------------
 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, 70 insertions(+), 15 deletions(-)