vhost: add unsafe async API to clear packets
authorCheng Jiang <cheng1.jiang@intel.com>
Fri, 23 Jul 2021 08:09:35 +0000 (08:09 +0000)
committerChenbo Xia <chenbo.xia@intel.com>
Fri, 23 Jul 2021 08:58:53 +0000 (10:58 +0200)
commitb737fd613969df722ddaa1cbcfd83aaad2441dbe
tree6c65bd329080b0a707f52b437c11037c62ddb6ca
parent3f63c19b2b3b25e72fe4c3d938a43738d04b7618
vhost: add unsafe async API to clear packets

Applications need to stop DMA transfers and finish all the inflight
packets when in VM memory hot-plug case and async vhost is used. This
patch is to provide an unsafe API to clear inflight packets which
are submitted to DMA engine in vhost async data path. Update the
program guide and release notes for virtqueue inflight packets clear
API in vhost lib.

Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/prog_guide/vhost_lib.rst
doc/guides/rel_notes/release_21_08.rst
lib/vhost/rte_vhost_async.h
lib/vhost/version.map
lib/vhost/virtio_net.c