summaryrefslogtreecommitdiff
path: root/net/dsa/switch.c
diff options
context:
space:
mode:
authorBrett Creeley <brett@pensando.io>2022-01-24 10:53:04 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-08 13:57:58 +0200
commitb1a7046c275c47323dc98526d7ebd27e54049c6b (patch)
treed8b034928248b4d6ef8c38fe5eccc6bb4496098e /net/dsa/switch.c
parent391fd5fbca8ee10c0e9eaeb14bfb32fc24b2f9b8 (diff)
ionic: Correctly print AQ errors if completions aren't received
[ Upstream commit bc43ed4f35abfdb1d52311110d49b545fccce975 ] Recent changes went into the driver to allow flexibility when printing error messages. Unfortunately this had the unexpected consequence of printing confusing messages like the following: IONIC_CMD_RX_FILTER_ADD (31) failed: IONIC_RC_SUCCESS (-6) In cases like this the completion of the admin queue command never completes, so the completion status is 0, hence IONIC_RC_SUCCESS is printed even though the command clearly failed. For example, this could happen when the driver tries to add a filter and at the same time the FW goes through a reset, so the AQ command never completes. Fix this by forcing the FW completion status to IONIC_RC_ERROR in cases where we never get the completion. Fixes: 8c9d956ab6fb ("ionic: allow adminq requests to override default error message") Signed-off-by: Brett Creeley <brett@pensando.io> Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/dsa/switch.c')
0 files changed, 0 insertions, 0 deletions