nvme-fabrics: add ENOKEY to no retry criteria for authentication failures
authorJustin Tee <justintee8345@gmail.com>
Mon, 17 Nov 2025 18:43:43 +0000 (10:43 -0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 4 Dec 2025 22:46:17 +0000 (14:46 -0800)
commit13989207ee29c40501e719512e8dc90768325895
tree8581762e059541f486f06307c9bdbbd5dbd63b85
parentbb9f4cca7c031de6f0e85f7ba24abf0172829f85
nvme-fabrics: add ENOKEY to no retry criteria for authentication failures

With authentication, in addition to EKEYREJECTED there is also no point in
retrying reconnects when status is ENOKEY.  Thus, add -ENOKEY as another
criteria to determine when to stop retries.

Cc: Daniel Wagner <wagi@kernel.org>
Cc: Hannes Reinecke <hare@suse.de>
Closes: https://lore.kernel.org/linux-nvme/20250829-nvme-fc-sync-v3-0-d69c87e63aee@kernel.org/
Signed-off-by: Justin Tee <justintee8345@gmail.com>
Tested-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/fabrics.c