diff options
author | Eli Cohen <eli@mellanox.com> | 2020-08-04 18:20:44 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-08-06 01:00:23 +0200 |
commit | 23750e39d57433d0e3d89658f0bc448f9c42ff49 (patch) | |
tree | 9f377ffa73d12ea6d7b8c8a9196f5250e923eb2b /drivers/vhost/test.h | |
parent | net/vdpa: Use struct for set/get vq state (diff) | |
download | linux-23750e39d57433d0e3d89658f0bc448f9c42ff49.tar.xz linux-23750e39d57433d0e3d89658f0bc448f9c42ff49.zip |
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>
Diffstat (limited to 'drivers/vhost/test.h')
0 files changed, 0 insertions, 0 deletions