nvmf: remove unused MaxRecvDataSegmentLength config

Change-Id: Ida9551aae5c1b6456c5871c77eadebc57f28bee8
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-06-29 14:13:52 -07:00
parent dde6da8442
commit 7066b5b952
3 changed files with 3 additions and 12 deletions

View File

@ -51,7 +51,6 @@ spdk_nvmf_parse_nvmf_tgt(void)
int max_sessions_per_subsystem;
int max_queue_depth;
int max_conn_per_sess;
int max_recv_seg_len;
int rc;
sp = spdk_conf_find_section(NULL, "Nvmf");
@ -80,10 +79,8 @@ spdk_nvmf_parse_nvmf_tgt(void)
max_conn_per_sess = SPDK_NVMF_DEFAULT_MAX_CONNECTIONS_PER_SESSION;
}
max_recv_seg_len = SPDK_NVMF_MAX_RECV_DATA_TRANSFER_SIZE;
rc = nvmf_tgt_init(nodebase, max_sessions_per_subsystem,
max_queue_depth, max_conn_per_sess, max_recv_seg_len);
max_queue_depth, max_conn_per_sess);
return rc;
}

View File

@ -139,7 +139,7 @@ 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 max_recv_seg_len)
int max_queue_depth, int max_conn_per_sess)
{
int rc;
@ -180,11 +180,6 @@ nvmf_tgt_init(char *nodebase,
return -EINVAL;
}
g_nvmf_tgt.MaxRecvDataSegmentLength = max_recv_seg_len;
SPDK_TRACELOG(SPDK_TRACE_DEBUG, "MaxRecvDataSegmentLength %d\n",
g_nvmf_tgt.MaxRecvDataSegmentLength);
rc = pthread_mutex_init(&g_nvmf_tgt.mutex, NULL);
if (rc != 0) {
SPDK_ERRLOG("mutex_init() failed\n");

View File

@ -107,7 +107,6 @@ struct spdk_nvmf_globals {
int MaxSessionsPerSubsystem;
int MaxQueueDepth;
int MaxConnectionsPerSession;
int MaxRecvDataSegmentLength;
struct rte_mempool *nvme_request_pool;
uint16_t sin_port;
@ -118,7 +117,7 @@ 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 max_recv_seg_len);
int max_conn_per_sess);
int nvmf_initialize(void);
void nvmf_shutdown(void);