nvmf: set ASQSZ in discovery log

Report the maximum admin queue size correctly.

Change-Id: I52cad654bf59806e0abb8d869c22973647056617
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-08-05 10:25:31 -07:00 committed by Ben Walker
parent be0dae64be
commit f279de1f71
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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)