net/mlx5e: Un-register uplink representor on nic_disable
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 10 Jan 2017 20:33:37 +0000 (22:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 02:34:01 +0000 (21:34 -0500)
commit3deef8cea3efcaeeae240bb00541de66abb9bfa0
tree03207b803a95a5d3fe29843d90952b836566cc24
parent5e86397abe10aa4c884478a45e9a35b6a37d8d5d
net/mlx5e: Un-register uplink representor on nic_disable

The code before this patch registered uplink e-Switch representor
on nic_enable and unregistered on nic_cleanup, the right place
for this unregister is in nic_disable.

Fixes: 127ea380acc9 ("net/mlx5: Add Representors registration API")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c