Skip to content

Commit

Permalink
net/mlx5: Clear health sick bit when starting health poll
Browse files Browse the repository at this point in the history
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: fd76ee4 ('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>
  • Loading branch information
Mohamad Haj Yahia authored and David S. Miller committed Oct 29, 2016
1 parent 247f139 commit 2241007
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/health.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2241007

Please sign in to comment.