nvmf: Allow cores not handling subsystems to go idle.

Use the event framework's new delay parameter to allow
for idle cores to sleep for up to 1ms at a time.

Change-Id: I665f38e590c07338418892afe0e75b0b2c79706e
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ben Walker 2016-08-16 13:27:51 -07:00
parent c16ca1ade7
commit 5d21943624
2 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,7 @@ struct rte_mempool *request_mempool;
#define SPDK_NVMF_BUILD_ETC "/usr/local/etc/nvmf"
#define SPDK_NVMF_DEFAULT_CONFIG SPDK_NVMF_BUILD_ETC "/nvmf.conf"
#define ACCEPT_TIMEOUT_US 1000 /* 1ms */
#define ACCEPT_TIMEOUT_US 10000 /* 10ms */
static struct spdk_poller *g_acceptor_poller = NULL;
@ -197,6 +197,7 @@ main(int argc, char **argv)
opts.name = "nvmf";
opts.config_file = SPDK_NVMF_DEFAULT_CONFIG;
opts.max_delay_us = 1000; /* 1 ms */
while ((ch = getopt(argc, argv, "c:de:i:l:m:n:p:qs:t:DH")) != -1) {
switch (ch) {

View File

@ -111,7 +111,8 @@ nvmf_create_subsystem(int num, const char *name,
return NULL;
}
SPDK_TRACELOG(SPDK_TRACE_NVMF, "nvmf_create_subsystem: allocated subsystem %p\n", subsystem);
SPDK_TRACELOG(SPDK_TRACE_NVMF, "nvmf_create_subsystem: allocated subsystem %p on lcore 0x%x\n",
subsystem, lcore);
subsystem->num = num;
subsystem->subtype = subtype;