return -1;
}
-void __rte_experimental
+__rte_experimental
+int
rte_option_register(struct rte_option *opt)
{
struct rte_option *option;
if (strcmp(gopt->name, opt->name) == 0) {
RTE_LOG(ERR, EAL, "Option %s is already a common EAL option.\n",
opt->name);
- return;
+ return -1;
}
gopt++;
}
if (strcmp(opt->name, option->name) == 0) {
RTE_LOG(ERR, EAL, "Option %s has already been registered.\n",
opt->name);
- return;
+ return -1;
}
}
TAILQ_INSERT_HEAD(&rte_option_list, opt, next);
+ return 0;
}
void