]> 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)
commitc56d8cf0c47c293ee760019ef814a389eb9a2334
treecadba1988c864b947c6957c70102c1590fc5f8b6
parentd92ceb552d656203d93ce68862540caee0d45535
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