Commit 052be2f5 authored by Ben Walker's avatar Ben Walker Committed by Benjamin Walker
Browse files

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: default avatarBen Walker <benjamin.walker@intel.com>
parent 8e1a8b87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);