[v9,0/4] add async data path in vhost sample

Message ID 20201022064625.90974-1-Cheng1.jiang@intel.com (mailing list archive)


Jiang, Cheng1 Oct. 22, 2020, 6:46 a.m. UTC
  This patch set makes vhost-vswitch be able to use vhost async APIs
for enqueue operations. Demonstrated how the application
leverage IOAT DMA channel with vhost async APIs.

We introduce two parameters to enable DMA acceleration for Tx
operations of queues:
-dma_type This parameter is used to specify DMA type for async
vhost-user net driver.
-dmas This parameter is used to specify the assigned DMA device of a
vhost device and enable async vhost data path.

 * Optimized code structure to solve compilation issue on non-x86 platforms

 * Changed meson build file due to the change of ioat component name

 * Improved IOAT callbacks and added some comments

 * Cleand code and rebased for latest code

 * Improved meson build file and fixed dependency problem

 * Code rebased for latest IOAT driver

 * Fixed a coding style problem

 * Changed meson build file to fix dependency problem
 * Added parameter description in usage function
 * Optimized parameter settings and parsing function
 * Optimized abstraction, moved some code to ioat.c

Cheng Jiang (4):
  example/vhost: add async vhost args parsing function
  example/vhost: add support for vhost async data path
  doc: update vhost sample doc for vhost async data path
  doc: update release notes for vhost sample

 doc/guides/rel_notes/release_20_11.rst |   6 +
 doc/guides/sample_app_ug/vhost.rst     |  11 ++
 examples/vhost/ioat.c                  | 198 +++++++++++++++++++++++++
 examples/vhost/ioat.h                  |  47 ++++++
 examples/vhost/main.c                  |  93 +++++++++++-
 examples/vhost/main.h                  |   1 +
 examples/vhost/meson.build             |   5 +
 7 files changed, 359 insertions(+), 2 deletions(-)
 create mode 100644 examples/vhost/ioat.c
 create mode 100644 examples/vhost/ioat.h