Commit ceefcfb8 authored by Jiri Pirko's avatar Jiri Pirko Committed by Jakub Kicinski

net/mlx5: Add comment to mlx5_devlink_params_register()

Add comment to mlx5_devlink_params_register() functions so it is clear
that only driver init params should be registered here.
Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20230314054234.267365-4-saeed@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8ff38e73
...@@ -805,6 +805,11 @@ int mlx5_devlink_params_register(struct devlink *devlink) ...@@ -805,6 +805,11 @@ int mlx5_devlink_params_register(struct devlink *devlink)
{ {
int err; int err;
/* Here only the driver init params should be registered.
* Runtime params should be registered by the code which
* behaviour they configure.
*/
err = devl_params_register(devlink, mlx5_devlink_params, err = devl_params_register(devlink, mlx5_devlink_params,
ARRAY_SIZE(mlx5_devlink_params)); ARRAY_SIZE(mlx5_devlink_params));
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment