]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: E-Switch Make cleanup sequence mirror of init
authorParav Pandit <parav@nvidia.com>
Tue, 2 Mar 2021 19:39:01 +0000 (21:39 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 14 Apr 2021 18:02:35 +0000 (11:02 -0700)
commit13795553a84dd3411d0870e161d40fee9c4ebe5c
tree98b5007a0117526db63677cfe78f74c400662090
parent6308a5f06be08f3ea1f1a895a9ef54c7b65c4c35
net/mlx5: E-Switch Make cleanup sequence mirror of init

Make cleanup sequence mirror of init sequence for cleaning up reps
and freeing vports.

Also when reps initialization fails, there is no need to perform reps
cleanup.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c