nvmf: Each listen addr gets its own PORT ID
PORT IDs indicate hardware failure domains according to the NVMf specification, which means they should indicate which transport addresses are on the same NIC. Unfortunately, that doesn't really make sense for IP-based fabrics because IP addresses can move. The safest way to present this is to show all IP addresses as part of different subsystem ports. Change-Id: I056a50c69be70b4fbf1f896e684ce65bd792241e Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
8e1a8b8752
commit
052be2f540
@ -231,7 +231,7 @@ spdk_format_discovery_log(struct spdk_nvmf_discovery_log_page *disc_log, uint32_
|
||||
break;
|
||||
}
|
||||
entry = &disc_log->entries[numrec];
|
||||
entry->portid = subsystem->num;
|
||||
entry->portid = numrec;
|
||||
entry->cntlid = 0xffff;
|
||||
entry->subtype = subsystem->subtype;
|
||||
snprintf(entry->subnqn, sizeof(entry->subnqn), "%s", subsystem->subnqn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user