net/mlx5: E-Switch, Use vport event handler for vport cleanup
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:14:01 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:48 +0000 (14:04 -0400)
commit586cfa7f1d58a7d480e548d4a9bef7f542a03257
tree973fb02260c8040c33e56ad7319da2683aeb127a
parent01f51f2247250eb69d2fd345c498eedbb078bb56
net/mlx5: E-Switch, Use vport event handler for vport cleanup

Remove the usage of explicit cleanup function and use existing vport
change handler. Calling vport change handler while vport
is disabled will cleanup the vport resources.

Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c