vhost: flush batched enqueue descs directly
authorMarvin Liu <yong.liu@intel.com>
Thu, 24 Oct 2019 16:08:27 +0000 (00:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:20:47 +0000 (19:20 +0200)
commitf41516c309d7ac96827ed5c7801211bcb6680f6d
tree7f6ff8578bc82f9bd8c19df2ba88d40ccb63d11d
parent33d4a554f9e7df9cb1d7da5df503e4c1c8717f8a
vhost: flush batched enqueue descs directly

Flush used elements when batched enqueue function is finished.
Descriptor's flags are pre-calculated as they will be reset by vhost.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.h
lib/librte_vhost/virtio_net.c