app/nvmf_tgt: rename spdk_nvmf_parse_subsystem_for_rpc

Change-Id: Ie07b8e593b757bcd1c796a2892292bffce2b77d7
Signed-off-by: GangCao <gang.cao@intel.com>
This commit is contained in:
GangCao 2017-02-21 12:49:59 +08:00 committed by Jim Harris
parent 0f95673d82
commit 6e8b6aea28
3 changed files with 21 additions and 21 deletions

View File

@ -394,11 +394,11 @@ spdk_nvmf_parse_subsystem(struct spdk_conf_section *sp)
num_devs++;
}
return spdk_nvmf_parse_subsystem_for_rpc(nqn, mode_str, lcore,
num_listen_addrs, listen_addrs,
num_hosts, hosts,
bdf, sn,
num_devs, devs);
return spdk_nvmf_construct_subsystem(nqn, mode_str, lcore,
num_listen_addrs, listen_addrs,
num_hosts, hosts,
bdf, sn,
num_devs, devs);
}
static int
@ -441,11 +441,11 @@ spdk_nvmf_parse_conf(void)
}
int
spdk_nvmf_parse_subsystem_for_rpc(const char *name,
const char *mode_str, int32_t lcore,
int num_listen_addresses, struct rpc_listen_address *addresses,
int num_hosts, char *hosts[], const char *bdf,
const char *sn, int num_devs, char *dev_list[])
spdk_nvmf_construct_subsystem(const char *name,
const char *mode_str, int32_t lcore,
int num_listen_addresses, struct rpc_listen_address *addresses,
int num_hosts, char *hosts[], const char *bdf,
const char *sn, int num_devs, char *dev_list[])
{
struct spdk_nvmf_subsystem *subsystem;
struct nvmf_tgt_subsystem *app_subsys;

View File

@ -303,12 +303,12 @@ spdk_rpc_construct_nvmf_subsystem(struct spdk_jsonrpc_server_conn *conn,
goto invalid;
}
ret = spdk_nvmf_parse_subsystem_for_rpc(req.nqn, req.mode, req.core,
req.listen_addresses.num_listen_address,
req.listen_addresses.addresses,
req.hosts.num_hosts, req.hosts.hosts, req.pci_address,
req.serial_number,
req.namespaces.num_names, req.namespaces.names);
ret = spdk_nvmf_construct_subsystem(req.nqn, req.mode, req.core,
req.listen_addresses.num_listen_address,
req.listen_addresses.addresses,
req.hosts.num_hosts, req.hosts.hosts, req.pci_address,
req.serial_number,
req.namespaces.num_names, req.namespaces.names);
if (ret) {
goto invalid;
}

View File

@ -77,11 +77,11 @@ struct nvmf_tgt_subsystem *nvmf_tgt_create_subsystem(const char *name,
uint32_t lcore);
int
spdk_nvmf_parse_subsystem_for_rpc(const char *name,
const char *mode, int32_t lcore,
int num_listen_addresses, struct rpc_listen_address *addresses,
int num_hosts, char *hosts[], const char *bdf,
const char *sn, int num_devs, char *dev_list[]);
spdk_nvmf_construct_subsystem(const char *name,
const char *mode, int32_t lcore,
int num_listen_addresses, struct rpc_listen_address *addresses,
int num_hosts, char *hosts[], const char *bdf,
const char *sn, int num_devs, char *dev_list[]);
int
nvmf_tgt_shutdown_subsystem_by_nqn(const char *nqn);