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>
Showing
- drivers/vdpa/ifcvf/ifcvf_main.c 3 additions, 2 deletionsdrivers/vdpa/ifcvf/ifcvf_main.c
- drivers/vdpa/vdpa_sim/vdpa_sim.c 3 additions, 2 deletionsdrivers/vdpa/vdpa_sim/vdpa_sim.c
- drivers/vhost/vdpa.c 4 additions, 1 deletiondrivers/vhost/vdpa.c
- include/linux/vdpa.h 2 additions, 2 deletionsinclude/linux/vdpa.h
Please register or sign in to comment