Skip to content

Commit d0183e3

Browse files
hreineckeigaw
authored andcommitted
Print out correct TREQ strings for discovery
The TREQ field in the discover log page is actually a bit field, so we need to update the string mapping to print out all possible combinations correctly. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 6f5e357 commit d0183e3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/nvme/fabrics.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,15 @@ static const char * const treqs[] = {
110110
[NVMF_TREQ_NOT_SPECIFIED] = "not specified",
111111
[NVMF_TREQ_REQUIRED] = "required",
112112
[NVMF_TREQ_NOT_REQUIRED] = "not required",
113-
[NVMF_TREQ_DISABLE_SQFLOW] = "not specified, "
114-
"sq flow control disable supported",
113+
[NVMF_TREQ_NOT_SPECIFIED |
114+
NVMF_TREQ_DISABLE_SQFLOW] = "not specified, "
115+
"sq flow control disable supported",
116+
[NVMF_TREQ_REQUIRED |
117+
NVMF_TREQ_DISABLE_SQFLOW] = "required, "
118+
"sq flow control disable supported",
119+
[NVMF_TREQ_NOT_REQUIRED |
120+
NVMF_TREQ_DISABLE_SQFLOW] = "not required, "
121+
"sq flow control disable supported",
115122
};
116123

117124
const char *nvmf_treq_str(__u8 treq)

0 commit comments

Comments
 (0)