vhost: advertise support in-order feature
authorMarvin Liu <yong.liu@intel.com>
Mon, 2 Jul 2018 13:56:34 +0000 (21:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit22d2e788400ffa29d8b1162fb90ee4908f68a5ea
tree620da41a479c1bd2cb7722b8541f526b04e4e751
parent246c5cc5f05e337782aed9afcf8dc61fe971fa52
vhost: advertise support in-order feature

If devices always use descriptors in the same order in which they have
been made available. These devices can offer the VIRTIO_F_IN_ORDER
feature. If negotiated, this knowledge allows devices to notify the use
of a batch of buffers to virtio driver by only writing used ring index.

Vhost user device has supported this feature by default. If vhost
dequeue zero is enabled, should disable VIRTIO_F_IN_ORDER as vhost can’t
assure that descriptors returned from NIC are in order.

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