Commit f279de1f authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

nvmf: set ASQSZ in discovery log



Report the maximum admin queue size correctly.

Change-Id: I52cad654bf59806e0abb8d869c22973647056617
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent be0dae64
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -255,6 +255,7 @@ spdk_format_discovery_log(struct spdk_nvmf_discovery_log_page *disc_log, uint32_
				entry = &disc_log->entries[numrec];
				entry->portid = numrec;
				entry->cntlid = 0xffff;
				entry->asqsz = g_nvmf_tgt.max_queue_depth;
				entry->subtype = subsystem->subtype;
				snprintf(entry->subnqn, sizeof(entry->subnqn), "%s", subsystem->subnqn);

+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,8 @@

SPDK_LOG_REGISTER_TRACE_FLAG("nvmf", SPDK_TRACE_NVMF)

struct spdk_nvmf_globals g_nvmf_tgt;

void
spdk_poller_register(struct spdk_poller *poller, uint32_t lcore, struct spdk_event *complete,
		     uint64_t period_microseconds)