net/mlx4_en: Avoid unregister_netdev at shutdown flow
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 21 Jun 2016 11:20:03 +0000 (14:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2016 20:38:11 +0000 (16:38 -0400)
commit9d76931180557270796f9631e2c79b9c7bb3c9fb
tree58119d9fbb3bfae0856da104657aad7d3dcf59f7
parent93c098af09455ea7bdc6f0f6b08f6ac14fa06cf4
net/mlx4_en: Avoid unregister_netdev at shutdown flow

This allows a clean shutdown, even if some netdev clients do not
release their reference from this netdev. It is enough to release
the HW resources only as the kernel is shutting down.

Fixes: 2ba5fbd62b25 ('net/mlx4_core: Handle AER flow properly')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h