From 9ef1496ba59af45f23cb0225b77909accfc778f0 Mon Sep 17 00:00:00 2001 From: Anil Veerabhadrappa Date: Mon, 28 Sep 2020 09:20:17 -0700 Subject: [PATCH] nvmf/fc: Initialize transport id for the newly created FC transport qpair Without this change nvmf_ctrlr_create() will fail to lookup the subsystem listener matching this qpair. Signed-off-by: Anil Veerabhadrappa Change-Id: I855baa16e996737b60dbd745ce84f8c0bc024cf1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4450 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/nvmf/fc_ls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nvmf/fc_ls.c b/lib/nvmf/fc_ls.c index 1aa06bd45..5364a16fc 100644 --- a/lib/nvmf/fc_ls.c +++ b/lib/nvmf/fc_ls.c @@ -357,6 +357,7 @@ nvmf_fc_ls_new_connection(struct spdk_nvmf_fc_association *assoc, uint16_t qid, */ nvmf_fc_create_trid(&fc_conn->trid, tgtport->fc_nodename.u.wwn, tgtport->fc_portname.u.wwn); + fc_conn->qpair.trid = &fc_conn->trid; return fc_conn; }