Skip to content

Commit 3bf2fde

Browse files
hreineckeaxboe
authored andcommitted
nvme-fabrics: decode 'authentication required' connect error
The 'connect' command might fail with NVME_SC_AUTH_REQUIRED, so we should be decoding this error, too. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 88b140f commit 3bf2fde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ static void nvmf_log_connect_error(struct nvme_ctrl *ctrl,
331331
dev_err(ctrl->device,
332332
"Connect command failed: host path error\n");
333333
break;
334+
case NVME_SC_AUTH_REQUIRED:
335+
dev_err(ctrl->device,
336+
"Connect command failed: authentication required\n");
337+
break;
334338
default:
335339
dev_err(ctrl->device,
336340
"Connect command failed, error wo/DNR bit: %d\n",

0 commit comments

Comments
 (0)