diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2016-06-21 14:20:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-22 16:38:11 -0400 |
commit | 9d76931180557270796f9631e2c79b9c7bb3c9fb (patch) | |
tree | 58119d9fbb3bfae0856da104657aad7d3dcf59f7 /include/linux/mlx4/device.h | |
parent | 93c098af09455ea7bdc6f0f6b08f6ac14fa06cf4 (diff) | |
download | linux-9d76931180557270796f9631e2c79b9c7bb3c9fb.tar.gz linux-9d76931180557270796f9631e2c79b9c7bb3c9fb.tar.bz2 linux-9d76931180557270796f9631e2c79b9c7bb3c9fb.zip |
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>
Diffstat (limited to 'include/linux/mlx4/device.h')
-rw-r--r-- | include/linux/mlx4/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 80dec87a94f8..d46a0e7f144d 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -466,6 +466,7 @@ enum { enum { MLX4_INTERFACE_STATE_UP = 1 << 0, MLX4_INTERFACE_STATE_DELETION = 1 << 1, + MLX4_INTERFACE_STATE_SHUTDOWN = 1 << 2, }; #define MSTR_SM_CHANGE_MASK (MLX4_EQ_PORT_INFO_MSTR_SM_SL_CHANGE_MASK | \ |