vdpa/mlx5: Add VDPA driver for supported mlx5 devices
authorEli Cohen <eli@mellanox.com>
Tue, 4 Aug 2020 16:20:48 +0000 (19:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 23:00:24 +0000 (19:00 -0400)
commit1a86b377aa2147a7c866b03142e848c18e5f3cb8
tree767f8283cba470842ab220a496573c18f0c7c294
parent94abbccdf2916cb03f9626f2d36c6e9971490c12
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>
drivers/vdpa/Kconfig
drivers/vdpa/mlx5/Makefile
drivers/vdpa/mlx5/core/mr.c
drivers/vdpa/mlx5/net/main.c [new file with mode: 0644]
drivers/vdpa/mlx5/net/mlx5_vnet.c [new file with mode: 0644]
drivers/vdpa/mlx5/net/mlx5_vnet.h [new file with mode: 0644]