diff options
author | Eli Cohen <eli@mellanox.com> | 2020-08-04 19:20:48 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-08-05 19:00:24 -0400 |
commit | 1a86b377aa2147a7c866b03142e848c18e5f3cb8 (patch) | |
tree | 767f8283cba470842ab220a496573c18f0c7c294 /drivers/vdpa/Kconfig | |
parent | 94abbccdf2916cb03f9626f2d36c6e9971490c12 (diff) | |
download | lwn-1a86b377aa2147a7c866b03142e848c18e5f3cb8.tar.gz lwn-1a86b377aa2147a7c866b03142e848c18e5f3cb8.zip |
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/Kconfig')
-rw-r--r-- | drivers/vdpa/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig index 7cb84f82feba..a8c7607fdc90 100644 --- a/drivers/vdpa/Kconfig +++ b/drivers/vdpa/Kconfig @@ -37,4 +37,14 @@ config MLX5_VDPA common for all types of VDPA drivers. The following drivers are planned: net, block. +config MLX5_VDPA_NET + tristate "vDPA driver for ConnectX devices" + depends on MLX5_VDPA + default n + help + VDPA network driver for ConnectX6 and newer. Provides offloading + of virtio net datapath such that descriptors put on the ring will + be executed by the hardware. It also supports a variety of stateless + offloads depending on the actual device used and firmware version. + endif # VDPA |