]> 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)
commitc359aa5c7b31f969ea8906e0a0128876a7204c03
tree98b5007a0117526db63677cfe78f74c400662090
parent799ec9623655895f3c377a0fae0aa3476dc2a588
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