vhost: add packed ring support to vring base requests
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 31 Oct 2018 10:26:39 +0000 (11:26 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commit2ce8b8973d2173ba23f54afb9f4122847e6bb1b5
tree7070018e11c597cd2bfc364b47439d11255d587a
parent2a821d81f355a40508c81c006f1e3002a1ba2494
vhost: add packed ring support to vring base requests

For packed ring layout, we need save avail index and its wrap
counter value. At restore time, the used index and its wrap counter
are set to available's ones, as the ring procressing is stopped
at vring base get time.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/vhost_user.c