vhost: introduce vring call API
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 2 Jan 2018 09:31:36 +0000 (09:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit6c299bb7322fc7c506389a951a2500a92ba9253e
tree4eaebf70f1d62df5d3271b5b3119f3896595666d
parent413a8fee30ad56e2ac64014b99338165c8b85a0d
vhost: introduce vring call API

Users of librte_vhost currently implement the vring call operation
themselves.  Each caller performs the operation slightly differently.

This patch introduces a new librte_vhost API called
rte_vhost_vring_call() that performs the operation so that vhost-user
applications don't have to duplicate it.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
examples/vhost/virtio_net.c
examples/vhost_scsi/vhost_scsi.c
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vhost.c