OSDN Git Service

net/mlx5: Handle "enable_roce" devlink param
authorMichael Guralnik <michaelgur@mellanox.com>
Fri, 8 Nov 2019 23:45:24 +0000 (23:45 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 11 Nov 2019 20:15:29 +0000 (12:15 -0800)
commitcc9defcbb8fae52810f7795b039223edae51ef95
tree4ee11cf42b8e8b8fdbd03414c93a2a74e5a587dd
parente90cde0d76f01fd3b60da0a983d2e93c5c35bedc
net/mlx5: Handle "enable_roce" devlink param

Register "enable_roce" param, default value is RoCE enabled.
Current configuration is stored on mlx5_core_dev and exposed to user
through the cmode runtime devlink param.
Changing configuration requires changing the cmode driverinit devlink
param and calling devlink reload.

Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Documentation/networking/device_drivers/mellanox/mlx5.rst
Documentation/networking/devlink-params-mlx5.txt
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
include/linux/mlx5/driver.h