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)
commitfbfa97b4d79f26042f188b84959065213e9d3e99
treecadba1988c864b947c6957c70102c1590fc5f8b6
parent9fbe1c25ecca87f1c390d1bfd347df92749941c5
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