examples/vhost: refactor vhost data path
authorCheng Jiang <cheng1.jiang@intel.com>
Tue, 12 Jan 2021 04:38:57 +0000 (04:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:09 +0000 (18:16 +0100)
commita68ba8e0a6b62ec9d038705fa920cddbdb6fb830
tree72f2c9904c1825444c760d6a7da1facab3188a48
parent2aa47e94bfb2d9ffb650b761ec82f1447c0c712c
examples/vhost: refactor vhost data path

Change the vm2vm data path to batch enqueue for better performance.
Support latest async vhost API, refactor vhost async data path,
replace rte_atomicNN_xxx to __atomic_XXX and clean some codes.

Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/ioat.h
examples/vhost/main.c
examples/vhost/main.h