mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-15 20:30:55 -04:00
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: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Link: https://lore.kernel.org/r/20230314054234.267365-4-saeed@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
8ff38e730c
commit
ceefcfb8a3
@@ -805,6 +805,11 @@ int mlx5_devlink_params_register(struct devlink *devlink)
|
||||
{
|
||||
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,
|
||||
ARRAY_SIZE(mlx5_devlink_params));
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user