vhost: add packed ring batch enqueue
authorMarvin Liu <yong.liu@intel.com>
Thu, 24 Oct 2019 16:08:23 +0000 (00:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:20:47 +0000 (19:20 +0200)
commitef861692c3980b906d433dcd17318c218eaf2988
tree5900fb8780408aabecf6ad97f3341e1f8fb75672
parent934274065a596f7fc7d4d5bfe5ab039390915a49
vhost: add packed ring batch enqueue

Batch enqueue function will first check whether descriptors are cache
aligned. It will also check prerequisites in the beginning. Batch
enqueue function do not support chained mbufs, single packet enqueue
function will handle it.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c