When passing extra arguments in EAL option --vdev, to create
ring ethdevs, API was creating three ethdevs, even if there
was just one argument, such as CREATE.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
eth_dev_ring_create(name, rte_socket_id(), DEV_CREATE);
return 0;
} else {
eth_dev_ring_create(name, rte_socket_id(), DEV_CREATE);
return 0;
} else {
- eth_dev_ring_create(name, rte_socket_id(), DEV_CREATE);
ret = rte_kvargs_count(kvlist, ETH_RING_NUMA_NODE_ACTION_ARG);
info = rte_zmalloc("struct node_action_list", sizeof(struct node_action_list) +
(sizeof(struct node_action_pair) * ret), 0);
ret = rte_kvargs_count(kvlist, ETH_RING_NUMA_NODE_ACTION_ARG);
info = rte_zmalloc("struct node_action_list", sizeof(struct node_action_list) +
(sizeof(struct node_action_pair) * ret), 0);
goto out_free;
for (info->count = 0; info->count < info->total; info->count++) {
goto out_free;
for (info->count = 0; info->count < info->total; info->count++) {
- eth_dev_ring_pair_create(name, info->list[info->count].node,
+ eth_dev_ring_create(name, info->list[info->count].node,
info->list[info->count].action);
}
}
info->list[info->count].action);
}
}