diff options
author | Eli Cohen <eli@mellanox.com> | 2020-08-04 19:20:48 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-08-06 02:00:24 +0300 |
commit | 1a86b377aa2147a7c866b03142e848c18e5f3cb8 (patch) | |
tree | 767f8283cba470842ab220a496573c18f0c7c294 /drivers/vdpa/mlx5/core/mr.c | |
parent | 94abbccdf2916cb03f9626f2d36c6e9971490c12 (diff) | |
download | linux-1a86b377aa2147a7c866b03142e848c18e5f3cb8.tar.xz |
vdpa/mlx5: Add VDPA driver for supported mlx5 devices
Add a front end VDPA driver that registers in the VDPA bus and provides
networking to a guest. The VDPA driver creates the necessary resources
on the VF it is driving such that data path will be offloaded.
Notifications are being communicated through the driver.
Currently, only VFs are supported. In subsequent patches we will have
devlink support to control which VF is used for VDPA and which function
is used for regular networking.
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Link: https://lore.kernel.org/r/20200804162048.22587-13-eli@mellanox.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/vdpa/mlx5/core/mr.c')
-rw-r--r-- | drivers/vdpa/mlx5/core/mr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vdpa/mlx5/core/mr.c b/drivers/vdpa/mlx5/core/mr.c index 084698975c47..f5dec0274133 100644 --- a/drivers/vdpa/mlx5/core/mr.c +++ b/drivers/vdpa/mlx5/core/mr.c @@ -464,7 +464,7 @@ int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *io bool *change_map) { struct mlx5_vdpa_mr *mr = &mvdev->mr; - int err; + int err = 0; *change_map = false; if (map_empty(iotlb)) { |