[PATCH] nvme-cli: fabrics: Fix to pass "host_traddr" to the kernel driver.
Duane Grigsby
duane.grigsby at qlogic.com
Wed Feb 8 10:46:24 PST 2017
This fix adds the "host_traddr" to the contructed string that is
passed to the kernel.
Signed-off-by: Darren Trapp <darren.trapp at cavium.com>
---
fabrics.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fabrics.c b/fabrics.c
index 362ca6f..3f6be53 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -595,6 +595,11 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
return -EINVAL;
p += len;
+ len = sprintf(p, ",host_traddr=%s", cfg.host_traddr);
+ if (len < 0)
+ return -EINVAL;
+ p+= len;
+
len = sprintf(p, ",traddr=%s", e->traddr);
if (len < 0)
return -EINVAL;
--
1.7.10.GIT
More information about the Linux-nvme
mailing list