From 7a9fa93df72f3a209ccbdf65744bac9c6d0a94b5 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 2 Jan 2026 11:33:25 +0100 Subject: [PATCH 1/2] fabrics: correctly set host traddr and iface nvmf_context_set_connection is not correctly assigning the traddr and iface. Signed-off-by: Daniel Wagner --- libnvme/src/nvme/fabrics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnvme/src/nvme/fabrics.c b/libnvme/src/nvme/fabrics.c index 6e8393a529..8ad16391f5 100644 --- a/libnvme/src/nvme/fabrics.c +++ b/libnvme/src/nvme/fabrics.c @@ -270,7 +270,8 @@ int nvmf_context_set_connection(struct nvmf_context *fctx, fctx->transport = transport; fctx->traddr = traddr; fctx->trsvcid = trsvcid; - fctx->host_traddr = host_iface; + fctx->host_traddr = host_traddr; + fctx->host_iface = host_iface; return 0; } From 42337b9cd23bef035fefb03a57566e39676ed12a Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 2 Jan 2026 11:34:54 +0100 Subject: [PATCH 2/2] fabrics: set hostnqn and hostid for fabrics context When setting up the fabrics context it's also necessary to set the hostnqn and hostid. Signed-off-by: Daniel Wagner --- fabrics.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fabrics.c b/fabrics.c index d22213bd27..4f78bf9d70 100644 --- a/fabrics.c +++ b/fabrics.c @@ -362,6 +362,10 @@ static int create_common_context(struct nvme_global_ctx *ctx, if (err) goto err; + err = nvmf_context_set_hostnqn(fctx, fa->hostnqn, fa->hostid); + if (err) + goto err; + err = nvmf_context_set_fabrics_config(fctx, cfg); if (err) goto err;