]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/mlx5e: Disable netdev after close
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 28 Dec 2016 12:58:42 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:36:53 +0000 (14:36 -0500)
commit37f304d10030bb425c19099e7b955d9c3ec4cba3
tree9697826bbafa4b6c068fbe188b47986180b77b99
parent610e89e05c3f28a7394935aa6b91f99548c4fd3c
net/mlx5e: Disable netdev after close

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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c