vhost: optimize packed ring dequeue when in-order
authorMarvin Liu <yong.liu@intel.com>
Thu, 24 Oct 2019 16:08:32 +0000 (00:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:20:47 +0000 (19:20 +0200)
commitf974ca7a2995b59b881d68b2e422c6e59f6b7069
tree7244be0998e5f04ad924ad7e511ba226984ccef3
parent31d6c6a5b8208c3b9bec010431d0d005d682dc27
vhost: optimize packed ring dequeue when in-order

When VIRTIO_F_IN_ORDER feature is negotiated, vhost can optimize dequeue
function by only update first used descriptor.

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