summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/health.c
diff options
context:
space:
mode:
authorMohamad Haj Yahia2016-10-25 17:36:32 +0200
committerDavid S. Miller2016-10-29 18:00:39 +0200
commit2241007b3d783cbdbaa78c30bdb1994278b6f9b9 (patch)
treec084034591c2f3ee8415e5b4900c0a3335e44612 /drivers/net/ethernet/mellanox/mlx5/core/health.c
parentnet/mlx5: Change the acl enable prototype to return status (diff)
downloadkernel-qcow2-linux-2241007b3d783cbdbaa78c30bdb1994278b6f9b9.tar.gz
kernel-qcow2-linux-2241007b3d783cbdbaa78c30bdb1994278b6f9b9.tar.xz
kernel-qcow2-linux-2241007b3d783cbdbaa78c30bdb1994278b6f9b9.zip
net/mlx5: Clear health sick bit when starting health poll
The health sick status should be cleared when we start the health poll. This is crucial for driver reload (unload + load) in order to behave right in case of health issue. Fixes: fd76ee4da55a ('net/mlx5_core: Fix internal error detection conditions') Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/health.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/health.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c
index 1a05fb965c8d..2cb4094c9c49 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/health.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c
@@ -281,6 +281,7 @@ void mlx5_start_health_poll(struct mlx5_core_dev *dev)
struct mlx5_core_health *health = &dev->priv.health;
init_timer(&health->timer);
+ health->sick = 0;
health->health = &dev->iseg->health;
health->health_counter = &dev->iseg->health_counter;