]> git.karo-electronics.de Git - linux-beck.git/commit
net/mlx5e: Disable netdev after close
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 28 Dec 2016 12:58:42 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jan 2017 12:42:53 +0000 (13:42 +0100)
commit8cb7d6277f01327d0503cd679afa9b09e76f2c97
tree7c447e79334b323a2c662a7192d16c7ccc384fb5
parentee9f2fd3f6b686ae6b04fc0c432984e10eb74006
net/mlx5e: Disable netdev after close

[ Upstream commit 37f304d10030bb425c19099e7b955d9c3ec4cba3 ]

Disable netdev should come after it was closed, although no harm of doing it
before -hence the MLX5E_STATE_DESTROYING bit- but it is more natural this way.

Fixes: 26e59d8077a3 ("net/mlx5e: Implement mlx5e interface attach/detach callbacks")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c