diff options
author | Maurizio Lombardi <[email protected]> | 2024-11-29 15:17:06 +0100 |
---|---|---|
committer | Keith Busch <[email protected]> | 2024-12-04 09:19:54 -0800 |
commit | 88c23a32b851e36adc4ab36f796d9b711f47e2bb (patch) | |
tree | 35f0bdaa9190d6ca6eb1971c7b72b8783ecb167a /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | b0de5456e201c475d6a860ceeb3ed8ee2923695a (diff) |
nvme-fabrics: handle zero MAXCMD without closing the connection
The NVMe specification states that MAXCMD is mandatory
for NVMe-over-Fabrics implementations. However, some NVMe/TCP
and NVMe/FC arrays from major vendors have buggy firmware
that reports MAXCMD as zero in the Identify Controller data structure.
Currently, the implementation closes the connection in such cases,
completely preventing the host from connecting to the target.
Fix the issue by printing a clear error message about the firmware bug
and allowing the connection to proceed. It assumes that the
target supports a MAXCMD value of SQSIZE + 1. If any issues arise,
the user can manually adjust SQSIZE to mitigate them.
Fixes: 4999568184e5 ("nvme-fabrics: check max outstanding commands")
Signed-off-by: Maurizio Lombardi <[email protected]>
Reviewed-by: Laurence Oberman <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions