Skip to content

Commit 74dfce1

Browse files
mosheshemesh2gregkh
authored andcommitted
net/mlx5: Avoid report two health errors on same syndrome
[ Upstream commit b5d7b2f ] In case health counter has not increased for few polling intervals, miss counter will reach max misses threshold and health report will be triggered for FW health reporter. In case syndrome found on same health poll another health report will be triggered. Avoid two health reports on same syndrome by marking this syndrome as already known. Signed-off-by: Moshe Shemesh <[email protected]> Reviewed-by: Shahar Shitrit <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 50fdcc4 commit 74dfce1

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/health.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ static void poll_health(struct timer_list *t)
733733
health->prev = count;
734734
if (health->miss_counter == MAX_MISSES) {
735735
mlx5_core_err(dev, "device's health compromised - reached miss count\n");
736+
health->synd = ioread8(&h->synd);
736737
print_health_info(dev);
737738
queue_work(health->wq, &health->report_work);
738739
}

0 commit comments

Comments
 (0)