Skip to content

Commit 9608f36

Browse files
committed
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 <[email protected]>
1 parent 1dc7960 commit 9608f36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fabrics.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ static int create_common_context(struct nvme_global_ctx *ctx,
362362
if (err)
363363
goto err;
364364

365+
err = nvmf_context_set_hostnqn(fctx, fa->hostnqn, fa->hostid);
366+
if (err)
367+
goto err;
368+
365369
err = nvmf_context_set_fabrics_config(fctx, cfg);
366370
if (err)
367371
goto err;

0 commit comments

Comments
 (0)