Ejemplo n.º 1
0
static void configure_if_queues(void)
{
	struct lcore_cfg *lconf = NULL;
	struct task_args *targ;
	uint8_t socket;

	while (core_targ_next(&lconf, &targ, 0) == 0) {
		socket = rte_lcore_to_socket_id(lconf->id);

		configure_if_tx_queues(targ, socket);
		configure_if_rx_queues(targ, socket);
	}
}
Ejemplo n.º 2
0
static void configure_if_queues(void)
{
	struct lcore_cfg *lconf;
	uint8_t socket;
	for (uint8_t lcore_id = 0; lcore_id < RTE_MAX_LCORE; ++lcore_id) {
		if (!rte_lcore_is_enabled(lcore_id) || lcore_id == tgen_cfg.master) {
			continue;
		}

		socket = rte_lcore_to_socket_id(lcore_id);
		lconf = &lcore_cfg[lcore_id];
		for (uint8_t task_id = 0; task_id < lconf->nb_tasks; ++task_id) {
			struct task_startup_cfg *startup_cfg = &lconf->startup_cfg[task_id];
			configure_if_tx_queues(startup_cfg, socket);
			configure_if_rx_queues(startup_cfg, socket);
		}
	}
}