]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Avoid deriving mlx5_core_dev second time
authorParav Pandit <parav@mellanox.com>
Wed, 18 Dec 2019 05:16:11 +0000 (23:16 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 13 Mar 2020 23:26:24 +0000 (16:26 -0700)
commit51a50ccb14f4aef9f9e5d361d6e229a94d04b9fb
treebee1c71414f93acc6129268611693eed89155031
parent15cbce0bf4f63fa5095e16c11291730743fadea8
net/mlx5: Avoid deriving mlx5_core_dev second time

All callers needs to work on mlx5_core_dev and it is already derived
before calling mlx5_devlink_eswitch_check().
Hence, accept mlx5_core_dev in mlx5_devlink_eswitch_check().

Given that it works on mlx5_core_dev change helper function name to
drop devlink prefix.

Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c