]> 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)
commit16d37f2d0aa0c879201e48898ef0360031f3c5ad
tree15a1592b2e45d49cbaec208703b37cebcb790b51
parentb2070ddde1395db141f365c2046aa1b07a19fcfb
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