]> git.baikalelectronics.ru Git - kernel.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)
commitde1ba6a4bec1561d6b7400e661b40aadbedc9b4d
tree98b5007a0117526db63677cfe78f74c400662090
parent6631d40c197b52528f66010b6b54f9525d05bcb5
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