Loading lib/nvmf/conf.c +1 −8 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ spdk_nvmf_parse_nvmf_tgt(void) { struct spdk_conf_section *sp; char *nodebase; int max_sessions_per_subsystem; int max_queue_depth; int max_conn_per_sess; int rc; Loading @@ -64,11 +63,6 @@ spdk_nvmf_parse_nvmf_tgt(void) nodebase = SPDK_NVMF_DEFAULT_NODEBASE; } max_sessions_per_subsystem = spdk_conf_section_get_intval(sp, "MaxSessionsPerSubsystem"); if (max_sessions_per_subsystem < 0) { max_sessions_per_subsystem = SPDK_NVMF_DEFAULT_MAX_SESSIONS_PER_SUBSYSTEM; } max_queue_depth = spdk_conf_section_get_intval(sp, "MaxQueueDepth"); if (max_queue_depth < 0) { max_queue_depth = SPDK_NVMF_DEFAULT_MAX_QUEUE_DEPTH; Loading @@ -79,8 +73,7 @@ spdk_nvmf_parse_nvmf_tgt(void) max_conn_per_sess = SPDK_NVMF_DEFAULT_MAX_CONNECTIONS_PER_SESSION; } rc = nvmf_tgt_init(nodebase, max_sessions_per_subsystem, max_queue_depth, max_conn_per_sess); rc = nvmf_tgt_init(nodebase, max_queue_depth, max_conn_per_sess); return rc; } Loading lib/nvmf/nvmf.c +0 −13 Original line number Diff line number Diff line Loading @@ -66,11 +66,9 @@ SPDK_LOG_REGISTER_TRACE_FLAG("nvmf", SPDK_TRACE_NVMF) * needed for all possible admin and I/O queue requests. */ #define SPDK_NVMF_ADMINQ_POOL_SIZE(spdk) (MAX_SUBSYSTEMS * \ (spdk->MaxSessionsPerSubsystem) * \ spdk->MaxQueueDepth) #define SPDK_NVMF_IOQ_POOL_SIZE(spdk) (MAX_SUBSYSTEMS * \ (spdk->MaxSessionsPerSubsystem) * \ (spdk->MaxConnectionsPerSession - 1) * \ spdk->MaxQueueDepth) Loading Loading @@ -133,7 +131,6 @@ spdk_nvmf_check_pools(void) int nvmf_tgt_init(char *nodebase, int max_sessions_per_subsystem, int max_queue_depth, int max_conn_per_sess) { int rc; Loading @@ -145,16 +142,6 @@ nvmf_tgt_init(char *nodebase, } SPDK_TRACELOG(SPDK_TRACE_DEBUG, "NodeBase: %s\n", g_nvmf_tgt.nodebase); if (max_sessions_per_subsystem >= 1 && max_sessions_per_subsystem <= SPDK_NVMF_DEFAULT_MAX_SESSIONS_PER_SUBSYSTEM) { g_nvmf_tgt.MaxSessionsPerSubsystem = max_sessions_per_subsystem; SPDK_TRACELOG(SPDK_TRACE_DEBUG, "MaxSessionsPerSubsystem: %d\n", g_nvmf_tgt.MaxSessionsPerSubsystem); } else { SPDK_ERRLOG("Invalid MaxSessionsPerSubsystem: %d\n", max_sessions_per_subsystem); return -EINVAL; } if (max_queue_depth >= 1 && max_queue_depth <= SPDK_NVMF_DEFAULT_MAX_QUEUE_DEPTH) { g_nvmf_tgt.MaxQueueDepth = max_queue_depth; Loading lib/nvmf/nvmf_internal.h +1 −4 Original line number Diff line number Diff line Loading @@ -56,7 +56,6 @@ #define SPDK_NVMF_DEFAULT_NUM_SESSIONS_PER_LCORE 1 #define SPDK_NVMF_DEFAULT_NODEBASE "nqn.2016-06.io.spdk" #define SPDK_NVMF_DEFAULT_MAX_SESSIONS_PER_SUBSYSTEM 1 #define SPDK_NVMF_DEFAULT_MAX_QUEUE_DEPTH 128 #define SPDK_NVMF_DEFAULT_MAX_CONNECTIONS_PER_SESSION 4 #define SPDK_NVMF_DEFAULT_SIN_PORT ((uint16_t)4420) Loading Loading @@ -103,7 +102,6 @@ struct spdk_nvmf_globals { pthread_mutex_t mutex; int MaxSessionsPerSubsystem; int MaxQueueDepth; int MaxConnectionsPerSession; Loading @@ -114,8 +112,7 @@ void nvmf_complete_cmd(void *rsp, const struct spdk_nvme_cpl *cmp); int nvmf_tgt_init(char *nodebase, int max_sessions, int max_queue_depth, int max_conn_per_sess); int nvmf_tgt_init(char *nodebase, int max_queue_depth, int max_conn_per_sess); int nvmf_initialize(void); void nvmf_shutdown(void); Loading Loading
lib/nvmf/conf.c +1 −8 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ spdk_nvmf_parse_nvmf_tgt(void) { struct spdk_conf_section *sp; char *nodebase; int max_sessions_per_subsystem; int max_queue_depth; int max_conn_per_sess; int rc; Loading @@ -64,11 +63,6 @@ spdk_nvmf_parse_nvmf_tgt(void) nodebase = SPDK_NVMF_DEFAULT_NODEBASE; } max_sessions_per_subsystem = spdk_conf_section_get_intval(sp, "MaxSessionsPerSubsystem"); if (max_sessions_per_subsystem < 0) { max_sessions_per_subsystem = SPDK_NVMF_DEFAULT_MAX_SESSIONS_PER_SUBSYSTEM; } max_queue_depth = spdk_conf_section_get_intval(sp, "MaxQueueDepth"); if (max_queue_depth < 0) { max_queue_depth = SPDK_NVMF_DEFAULT_MAX_QUEUE_DEPTH; Loading @@ -79,8 +73,7 @@ spdk_nvmf_parse_nvmf_tgt(void) max_conn_per_sess = SPDK_NVMF_DEFAULT_MAX_CONNECTIONS_PER_SESSION; } rc = nvmf_tgt_init(nodebase, max_sessions_per_subsystem, max_queue_depth, max_conn_per_sess); rc = nvmf_tgt_init(nodebase, max_queue_depth, max_conn_per_sess); return rc; } Loading
lib/nvmf/nvmf.c +0 −13 Original line number Diff line number Diff line Loading @@ -66,11 +66,9 @@ SPDK_LOG_REGISTER_TRACE_FLAG("nvmf", SPDK_TRACE_NVMF) * needed for all possible admin and I/O queue requests. */ #define SPDK_NVMF_ADMINQ_POOL_SIZE(spdk) (MAX_SUBSYSTEMS * \ (spdk->MaxSessionsPerSubsystem) * \ spdk->MaxQueueDepth) #define SPDK_NVMF_IOQ_POOL_SIZE(spdk) (MAX_SUBSYSTEMS * \ (spdk->MaxSessionsPerSubsystem) * \ (spdk->MaxConnectionsPerSession - 1) * \ spdk->MaxQueueDepth) Loading Loading @@ -133,7 +131,6 @@ spdk_nvmf_check_pools(void) int nvmf_tgt_init(char *nodebase, int max_sessions_per_subsystem, int max_queue_depth, int max_conn_per_sess) { int rc; Loading @@ -145,16 +142,6 @@ nvmf_tgt_init(char *nodebase, } SPDK_TRACELOG(SPDK_TRACE_DEBUG, "NodeBase: %s\n", g_nvmf_tgt.nodebase); if (max_sessions_per_subsystem >= 1 && max_sessions_per_subsystem <= SPDK_NVMF_DEFAULT_MAX_SESSIONS_PER_SUBSYSTEM) { g_nvmf_tgt.MaxSessionsPerSubsystem = max_sessions_per_subsystem; SPDK_TRACELOG(SPDK_TRACE_DEBUG, "MaxSessionsPerSubsystem: %d\n", g_nvmf_tgt.MaxSessionsPerSubsystem); } else { SPDK_ERRLOG("Invalid MaxSessionsPerSubsystem: %d\n", max_sessions_per_subsystem); return -EINVAL; } if (max_queue_depth >= 1 && max_queue_depth <= SPDK_NVMF_DEFAULT_MAX_QUEUE_DEPTH) { g_nvmf_tgt.MaxQueueDepth = max_queue_depth; Loading
lib/nvmf/nvmf_internal.h +1 −4 Original line number Diff line number Diff line Loading @@ -56,7 +56,6 @@ #define SPDK_NVMF_DEFAULT_NUM_SESSIONS_PER_LCORE 1 #define SPDK_NVMF_DEFAULT_NODEBASE "nqn.2016-06.io.spdk" #define SPDK_NVMF_DEFAULT_MAX_SESSIONS_PER_SUBSYSTEM 1 #define SPDK_NVMF_DEFAULT_MAX_QUEUE_DEPTH 128 #define SPDK_NVMF_DEFAULT_MAX_CONNECTIONS_PER_SESSION 4 #define SPDK_NVMF_DEFAULT_SIN_PORT ((uint16_t)4420) Loading Loading @@ -103,7 +102,6 @@ struct spdk_nvmf_globals { pthread_mutex_t mutex; int MaxSessionsPerSubsystem; int MaxQueueDepth; int MaxConnectionsPerSession; Loading @@ -114,8 +112,7 @@ void nvmf_complete_cmd(void *rsp, const struct spdk_nvme_cpl *cmp); int nvmf_tgt_init(char *nodebase, int max_sessions, int max_queue_depth, int max_conn_per_sess); int nvmf_tgt_init(char *nodebase, int max_queue_depth, int max_conn_per_sess); int nvmf_initialize(void); void nvmf_shutdown(void); Loading