diff options
| author | Keegan Freyhof <keegan.freyhof@broadcom.com> | 2026-11-10 09:49:42 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-12 16:02:31 -0800 |
| commit | ad3bee5c582e95754ac483f00dbeed882b9eb5dc (patch) | |
| tree | 85e97e4eb732bb4909a9806d51bc19c36fe4058a /tools/perf/scripts/python | |
| parent | 7e1392a42ea288d70a266f6553fe06f57f8647ea (diff) | |
bnxt_en: Map HWRM_ERR_CODE_PF_UNAVAILABLE to -ECOMM
The current use of -ENODEV for both PCI being disabled and FW's
HWRM_ERR_CODE_PF_UNAVAILABLE errors makes it impossible for the
caller to distinguish between the 2 errors. As a result, a disabled
VF device will cause the driver to pointlessly retry setting L2
filters believing that the PF is down.
Fix it by using -ECOMM instead for HWRM_ERR_CODE_PF_UNAVAILABLE
which means that the FW is failing the command on the VF because the
PF is down. This new -ECOMM error code which is more accurate will
now propagate to userspace instead of -ENODEV on some VF failure
paths when the PF is down.
Fixes: 662c9b22f5b5 ("bnxt_en: improve VF error messages when PF is unavailable")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Keegan Freyhof <keegan.freyhof@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20261110174943.2106347-2-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
