Renaming vip6_cfg_hander() to vip6_cfg_handler()

Corrected the output of an error log as well.
This commit is contained in:
Björn Svensson 2022-02-11 16:24:45 +01:00
parent 1df9798077
commit 2445361818
1 changed files with 7 additions and 7 deletions

View File

@ -367,7 +367,7 @@ parse_port_slave_list(struct ff_port_cfg *cfg, const char *v_str)
}
static int
vip_cfg_hander(struct ff_port_cfg *cur)
vip_cfg_handler(struct ff_port_cfg *cur)
{
//vip cfg
int ret;
@ -375,7 +375,7 @@ vip_cfg_hander(struct ff_port_cfg *cur)
ret = rte_strsplit(cur->vip_addr_str, strlen(cur->vip_addr_str), &vip_addr_array[0], VIP_MAX_NUM, ';');
if (ret <= 0) {
fprintf(stdout, "vip_cfg_hander nb_vip is 0, not set vip_addr or set invalid vip_addr %s\n",
fprintf(stdout, "vip_cfg_handler nb_vip is 0, not set vip_addr or set invalid vip_addr %s\n",
cur->vip_addr_str);
return 1;
}
@ -384,7 +384,7 @@ vip_cfg_hander(struct ff_port_cfg *cur)
cur->vip_addr_array = (char **)calloc(cur->nb_vip, sizeof(char *));
if (cur->vip_addr_array == NULL) {
fprintf(stderr, "vip_cfg_hander malloc failed\n");
fprintf(stderr, "vip_cfg_handler malloc failed\n");
goto err;
}
@ -404,7 +404,7 @@ err:
#ifdef INET6
static int
vip6_cfg_hander(struct ff_port_cfg *cur)
vip6_cfg_handler(struct ff_port_cfg *cur)
{
//vip6 cfg
int ret;
@ -413,7 +413,7 @@ vip6_cfg_hander(struct ff_port_cfg *cur)
ret = rte_strsplit(cur->vip_addr6_str, strlen(cur->vip_addr6_str),
&vip_addr6_array[0], VIP_MAX_NUM, ';');
if (ret == 0) {
fprintf(stdout, "vip6_cfg_hander nb_vip6 is 0, not set vip_addr6 or set invalid vip_addr6 %s\n",
fprintf(stdout, "vip6_cfg_handler nb_vip6 is 0, not set vip_addr6 or set invalid vip_addr6 %s\n",
cur->vip_addr6_str);
return 1;
}
@ -422,7 +422,7 @@ vip6_cfg_hander(struct ff_port_cfg *cur)
cur->vip_addr6_array = (char **) calloc(cur->nb_vip6, sizeof(char *));
if (cur->vip_addr6_array == NULL) {
fprintf(stderr, "port_cfg_handler malloc failed\n");
fprintf(stderr, "vip6_cfg_handler malloc failed\n");
goto fail;
}
@ -506,7 +506,7 @@ port_cfg_handler(struct ff_config *cfg, const char *section,
} else if (strcmp(name, "vip_addr") == 0) {
cur->vip_addr_str = strdup(value);
if (cur->vip_addr_str) {
return vip_cfg_hander(cur);
return vip_cfg_handler(cur);
}
} else if (strcmp(name, "vip_ifname") == 0) {
cur->vip_ifname = strdup(value);