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:
parent
0f95673d82
commit
6e8b6aea28
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user