nvmf: remove unused listen_port from nvmf_tgt_init
We need to bind to each port declared in the config file; there is not a single global port number. Change-Id: I41c315588078d131c32cb145d22314047505c95c Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
e056066733
commit
dde6da8442
@ -52,7 +52,6 @@ spdk_nvmf_parse_nvmf_tgt(void)
|
||||
int max_queue_depth;
|
||||
int max_conn_per_sess;
|
||||
int max_recv_seg_len;
|
||||
int listen_port;
|
||||
int rc;
|
||||
|
||||
sp = spdk_conf_find_section(NULL, "Nvmf");
|
||||
@ -82,10 +81,9 @@ spdk_nvmf_parse_nvmf_tgt(void)
|
||||
}
|
||||
|
||||
max_recv_seg_len = SPDK_NVMF_MAX_RECV_DATA_TRANSFER_SIZE;
|
||||
listen_port = SPDK_NVMF_DEFAULT_SIN_PORT;
|
||||
|
||||
rc = nvmf_tgt_init(nodebase, max_sessions_per_subsystem,
|
||||
max_queue_depth, max_conn_per_sess, max_recv_seg_len, listen_port);
|
||||
max_queue_depth, max_conn_per_sess, max_recv_seg_len);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
@ -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 listen_port)
|
||||
int max_queue_depth, int max_conn_per_sess, int max_recv_seg_len)
|
||||
{
|
||||
int rc;
|
||||
|
||||
|
@ -118,7 +118,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 listen_port);
|
||||
int max_conn_per_sess, int max_recv_seg_len);
|
||||
|
||||
int nvmf_initialize(void);
|
||||
void nvmf_shutdown(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user