Skip to content

Commit e485d28

Browse files
martin-gpyigaw
authored andcommitted
fabrics: add additional debug messages for --tls and --concat
Add additional debug messages when --tls and --concat is set respectively based on the treq and sectype fields for a given record in the discovery log page data during a nvme connect-all. This makes it easier to debug, otherwise can be quite confusing to the end user. Signed-off-by: Martin George <[email protected]> (cherry picked from f0dd975155f4) Signed-off-by: Daniel Wagner <[email protected]>
1 parent fad4a88 commit e485d28

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/nvme/fabrics.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,10 +1111,15 @@ nvme_ctrl_t nvmf_connect_disc_entry(nvme_host_t h,
11111111

11121112
if (e->trtype == NVMF_TRTYPE_TCP &&
11131113
e->tsas.tcp.sectype != NVMF_TCP_SECTYPE_NONE) {
1114-
if (e->treq & NVMF_TREQ_REQUIRED)
1114+
if (e->treq & NVMF_TREQ_REQUIRED) {
1115+
nvme_msg(h->r, LOG_DEBUG, "setting --tls due to treq %s and sectype %s\n",
1116+
nvmf_treq_str(e->treq), nvmf_sectype_str(e->tsas.tcp.sectype));
11151117
c->cfg.tls = true;
1116-
else if (e->treq & NVMF_TREQ_NOT_REQUIRED)
1118+
} else if (e->treq & NVMF_TREQ_NOT_REQUIRED) {
1119+
nvme_msg(h->r, LOG_DEBUG, "setting --concat due to treq %s and sectype %s\n",
1120+
nvmf_treq_str(e->treq), nvmf_sectype_str(e->tsas.tcp.sectype));
11171121
c->cfg.concat = true;
1122+
}
11181123
}
11191124

11201125
ret = nvmf_add_ctrl(h, c, cfg);

0 commit comments

Comments
 (0)