]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Use helper function to load unload representor
authorParav Pandit <parav@nvidia.com>
Mon, 31 Aug 2020 18:18:59 +0000 (21:18 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 1 Oct 2020 04:26:29 +0000 (21:26 -0700)
commit780c59e6c7f4b3aee1bb9483f183e69d275ec3fe
tree15a1592b2e45d49cbaec208703b37cebcb790b51
parent4e54aca886b4f885ee0e0633c9bf4db096576bf0
net/mlx5: E-switch, Use helper function to load unload representor

To register and unregister devlink ports when loading/unload
representors, refactor the code to helper functions.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c