Skip to content

Commit 25e3cf9

Browse files
mosheshemesh2opsiff
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 <moshe@nvidia.com> Reviewed-by: Shahar Shitrit <shshitrit@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit b3c84494848488040b51fb11f4e48a1987ece5c5)
1 parent 1344c3c commit 25e3cf9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ static void poll_health(struct timer_list *t)
833833
health->prev = count;
834834
if (health->miss_counter == MAX_MISSES) {
835835
mlx5_core_err(dev, "device's health compromised - reached miss count\n");
836+
health->synd = ioread8(&h->synd);
836837
print_health_info(dev);
837838
queue_work(health->wq, &health->report_work);
838839
}

0 commit comments

Comments
 (0)