nvmf: Rename init_grp to host in config parsing

The code for parsing the configuration file still
referred to a host as an init_grp, so fix it.

Change-Id: Ifa250b09de495dd7d393ccc3557fd6d56a54e790
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ben Walker 2016-07-11 13:45:04 -07:00
parent 32a70c1ffc
commit f20727afbb

View File

@ -234,7 +234,7 @@ spdk_nvmf_parse_ports(void)
} }
static int static int
spdk_nvmf_parse_init_grp(struct spdk_conf_section *sp) spdk_nvmf_parse_host(struct spdk_conf_section *sp)
{ {
int i; int i;
const char *mask; const char *mask;
@ -280,7 +280,7 @@ spdk_nvmf_parse_init_grp(struct spdk_conf_section *sp)
} }
static int static int
spdk_nvmf_parse_init_grps(void) spdk_nvmf_parse_hosts(void)
{ {
int rc = 0; int rc = 0;
struct spdk_conf_section *sp; struct spdk_conf_section *sp;
@ -288,7 +288,7 @@ spdk_nvmf_parse_init_grps(void)
sp = spdk_conf_first_section(NULL); sp = spdk_conf_first_section(NULL);
while (sp != NULL) { while (sp != NULL) {
if (spdk_conf_section_match_prefix(sp, "Host")) { if (spdk_conf_section_match_prefix(sp, "Host")) {
rc = spdk_nvmf_parse_init_grp(sp); rc = spdk_nvmf_parse_host(sp);
if (rc < 0) { if (rc < 0) {
return -1; return -1;
} }
@ -315,8 +315,8 @@ spdk_nvmf_parse_conf(void)
return rc; return rc;
} }
/* Initiator Group sections */ /* Host sections */
rc = spdk_nvmf_parse_init_grps(); rc = spdk_nvmf_parse_hosts();
if (rc < 0) { if (rc < 0) {
return rc; return rc;
} }