]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Disable roce at HCA level
authorShay Drory <shayd@nvidia.com>
Wed, 18 Aug 2021 10:21:30 +0000 (13:21 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 16 Oct 2021 00:37:44 +0000 (17:37 -0700)
commit74149ed75162f3157de46825b0490a91eda71770
treecadba1988c864b947c6957c70102c1590fc5f8b6
parent0882bad5c001a644821a2763cdc76484425a747e
net/mlx5: Disable roce at HCA level

Currently, when a user disables roce via the devlink param, this change
isn't passed down to the device.
If device allows disabling RoCE at device level, make use of it. This
instructs the device to skip memory allocations related to RoCE
functionality which otherwise is done by the device.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h