]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28ca9a52202b99957809df6318d491e3033a2f3b
tree03207b803a95a5d3fe29843d90952b836566cc24
parente720e73a27eeb778edab90343a2afde13cca0cc5
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: d0827d6f7a84 ("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