Skip to content

Commit 94812af

Browse files
authored
Merge pull request #1535 from hreinecke/TP8014
fabrics: decode 'current' discovery subsystem
2 parents 72fcf9b + b1943d9 commit 94812af

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

fabrics.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ static inline const char *adrfam_str(__u8 adrfam)
143143
}
144144

145145
static const char * const subtypes[] = {
146-
[NVME_NQN_DISC] = "discovery subsystem",
146+
[NVME_NQN_DISC] = "discovery subsystem referral",
147147
[NVME_NQN_NVME] = "nvme subsystem",
148+
[NVME_NQN_CURR] = "current subsystem",
148149
};
149150

150151
static inline const char *subtype_str(__u8 subtype)
@@ -1172,6 +1173,7 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
11721173

11731174
switch (e->subtype) {
11741175
case NVME_NQN_DISC:
1176+
case NVME_NQN_CURR:
11751177
discover = true;
11761178
case NVME_NQN_NVME:
11771179
break;

linux/nvme.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ static inline uint64_t le64_to_cpu(__le64 x)
7575
#define NVME_NSID_ALL 0xffffffff
7676

7777
enum nvme_subsys_type {
78-
NVME_NQN_DISC = 1, /* Discovery type target subsystem */
78+
NVME_NQN_DISC = 1, /* Referral Discovery type target subsystem */
7979
NVME_NQN_NVME = 2, /* NVME type target subsystem */
80+
NVME_NQN_CURR = 3, /* Current Discovery type target subsystem */
8081
};
8182

8283
/* Address Family codes for Discovery Log Page entry ADRFAM field */

0 commit comments

Comments
 (0)