]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net/mlx5e: Do not recover from a non-fatal syndrome
authorAya Levin <ayal@mellanox.com>
Thu, 19 Mar 2020 11:25:17 +0000 (13:25 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
commit42407c81df0d8c40d282e29d74a6f98c4683e1da
tree11e7e16c78f10452beb2ec33258faa9ba04bfe16
parent06876605fce4b675cb74a3d4eb8b8d918d5c134b
net/mlx5e: Do not recover from a non-fatal syndrome

BugLink: https://bugs.launchpad.net/bugs/1870142
[ Upstream commit 187a9830c921d92c4a9a8e2921ecc4b35a97532c ]

For non-fatal syndromes like LOCAL_LENGTH_ERR, recovery shouldn't be
triggered. In these scenarios, the RQ is not actually in ERR state.
This misleads the recovery flow which assumes that the RQ is really in
error state and no more completions arrive, causing crashes on bad page
state.

Fixes: 8276ea1353a4 ("net/mlx5e: Report and recover from CQE with error on RQ")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en/health.h