vhost: introduce async enqueue for split ring
authorPatrick Fu <patrick.fu@intel.com>
Tue, 7 Jul 2020 05:07:09 +0000 (13:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:28 +0000 (23:38 +0200)
commitcd6760da1076d43c3ef9624c4efca0921b5cb58d
treed48f1f29583d2e25d148f6f99e6e66eab1e961d3
parent78639d54563a42150fe6e85977f06a6db55d3a06
vhost: introduce async enqueue for split ring

This patch implements async enqueue data path for split ring. 2 new
async data path APIs are defined, by which applications can submit
and poll packets to/from async engines. The async engine is either
a physical DMA device or it could also be a software emulated backend.
The async enqueue data path leverages callback functions registered by
applications to work with the async engine.

Signed-off-by: Patrick Fu <patrick.fu@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/rte_vhost_async.h
lib/librte_vhost/virtio_net.c