]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
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)
commit38679b5a0df20da12b8064c7497b7891a00afe52
tree15a1592b2e45d49cbaec208703b37cebcb790b51
parent2c40db2f1d41cc1520b1cc664308fa3c32cf4178
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