Skip to contentSkip to conversation

nvme-fabrics: decode host pathing error for connect

PATCH Applied Hannes Reinecke 5 participants 5 messages May 21, 2021 – May 25, 2021 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-fabrics: decode host pathing error for connect

Add an additional decoding for 'host pathing error' during connect.

---
 drivers/nvme/host/fabrics.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/nvme/host/fabrics.c +5 -0
index a2bb7fc63a73..34a84d2086c7 100644
@@ -336,6 +336,11 @@ static void nvmf_log_connect_error(struct nvme_ctrl *ctrl,
 			cmd->connect.recfmt);
 		break;
 
+	case NVME_SC_HOST_PATH_ERROR:
+		dev_err(ctrl->device,
+			"Connect command failed: host path error\n");
+		break;
+
 	default:
 		dev_err(ctrl->device,
 			"Connect command failed, error wo/DNR bit: %d\n",
Signature · 7 lines
2.29.2


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Hannes Reinecke

Add an additional decoding for 'host pathing error' during connect.

---
  drivers/nvme/host/fabrics.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/nvme/host/fabrics.c +0 -0
index a2bb7fc63a73..34a84d2086c7 100644
@@ -336,6 +336,11 @@ static void nvmf_log_connect_error(struct nvme_ctrl *ctrl,
  			cmd->connect.recfmt);

drivers/nvme/host/fabrics.c static void nvmf_log_connect_error(struct nvme_ctrl *ctrl, · line 346

Quoted 10 lines
drivers/nvme/host/fabrics.c +5 -0
  		break;
 
+	case NVME_SC_HOST_PATH_ERROR:
+		dev_err(ctrl->device,
+			"Connect command failed: host path error\n");
+		break;
+
  	default:
  		dev_err(ctrl->device,
  			"Connect command failed, error wo/DNR bit: %d\n",
Signature · 6 lines
Himanshu Madhani                                Oracle Linux Engineering

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme