From 317f6ee048d32fc0db6b552311505010d802099f Mon Sep 17 00:00:00 2001 From: Duane Grigsby Date: Wed, 8 Feb 2017 10:46:24 -0800 Subject: [PATCH] nvme-cli: fabrics: Fix to pass "host_traddr" to the kernel driver. This fix adds the "host_traddr" to the contructed string that is passed to the kernel. Signed-off-by: Darren Trapp Reviewed-by: Sagi Grimberg --- 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; -- 2.49.0