[PATCH v5 0/2] vhost: introduce DMA vchannel unconfiguration
xuan.ding at intel.com
xuan.ding at intel.com
Thu Oct 13 11:27:06 CEST 2022
From: Xuan Ding <xuan.ding at intel.com>
This patchset introduces a new API rte_vhost_async_dma_unconfigure()
to help user to manually free DMA vchannels finished to use.
Note: this API should be called after async channel unregister.
v5:
* Use mutex instead of spinlock.
* Improve code readability.
v4:
* Rebase to 22.11 rc1.
* Fix the usage of 'dma_ref_count' to make sure the specified DMA device
is not used by any vhost ports before unconfiguration.
v3:
* Rebase to latest DPDK.
* Refine some descriptions in the doc.
* Fix one bug in the vhost example.
v2:
* Add spinlock protection.
* Fix a memory leak issue.
* Refine the doc.
Xuan Ding (2):
vhost: introduce DMA vchannel unconfiguration
examples/vhost: unconfigure DMA vchannel
doc/guides/prog_guide/vhost_lib.rst | 6 +++
doc/guides/rel_notes/release_22_11.rst | 4 ++
examples/vhost/main.c | 40 ++++++++++-----
lib/vhost/rte_vhost_async.h | 18 +++++++
lib/vhost/version.map | 3 ++
lib/vhost/vhost.c | 69 ++++++++++++++++++++++++--
6 files changed, 122 insertions(+), 18 deletions(-)
--
2.17.1
More information about the dev
mailing list