]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Delete redundant default assignment of runtime devlink params
authorShay Drory <shayd@nvidia.com>
Wed, 3 Nov 2021 10:18:35 +0000 (12:18 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 May 2022 04:21:11 +0000 (21:21 -0700)
commitb5235a9979f9be05e1ffde3546877d3b9a1172c4
tree13f9d551dd2d9c2719c60ed63f4991b51aa39a75
parent7134c602812a69885de9be7b6bc15c7250c5e637
net/mlx5: Delete redundant default assignment of runtime devlink params

Runtime devlink params always read their values from the get() callbacks.
Also, it is an error to set driverinit_value for params which don't
support driverinit cmode. Delete such assignments.

In addition, move the set of default matching mode inside eswitch code.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c