net/mlx5: E-Switch, Disable esw manager vport correctly
authorBodong Wang <bodong@mellanox.com>
Mon, 18 Feb 2019 03:04:42 +0000 (21:04 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Feb 2019 22:15:04 +0000 (14:15 -0800)
commit1c50d369f560809d45e75fa9d7d6b3901192c18b
tree4b0f6d7a701cdaba2b719d1610d1ee5dc1722597
parentacad70731e63aa3a901bc04a81a4a152cadbe9bf
net/mlx5: E-Switch, Disable esw manager vport correctly

When disabling vport, relevant vport configurations will be cleaned
up. These cleanups should be done to the vports which had these configs
applied at vport enablement. As esw manager vport didn't have such
vport config applied, cleanup should not touch it.

Fixes: de9e6a8136c5 ("net/mlx5: E-Switch, Properly refer to host PF vport as other vport")
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reported-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c