vdpa: Modify get_vq_state() to return error code
authorEli Cohen <eli@mellanox.com>
Tue, 4 Aug 2020 16:20:44 +0000 (19:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 23:00:23 +0000 (19:00 -0400)
commit23750e39d57433d0e3d89658f0bc448f9c42ff49
tree9f377ffa73d12ea6d7b8c8a9196f5250e923eb2b
parentaac50c0bd434794b9950181349099e709ca4edad
vdpa: Modify get_vq_state() to return error code

Modify get_vq_state() so it returns an error code. In case of hardware
acceleration, the available index may be retrieved from the device, an
operation that can possibly fail.

Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Link: https://lore.kernel.org/r/20200804162048.22587-9-eli@mellanox.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c
drivers/vdpa/vdpa_sim/vdpa_sim.c
drivers/vhost/vdpa.c
include/linux/vdpa.h