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: NParav Pandit <parav@nvidia.com> Reviewed-by: NRoi Dayan <roid@nvidia.com> Reviewed-by: NVu Pham <vuhuong@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
Showing
想要评论请 注册 或 登录