From a2e88f8fd9fe164bdbac4e817c164bc84a68f8c9 Mon Sep 17 00:00:00 2001 From: Deepak S Date: Tue, 6 Jun 2017 08:24:48 +0000 Subject: Set rxq and txq to same value to enable to run UDP replay on single thread Change-Id: Iee26005d5e90a7481f6e6fb3c7441a2011fe5596 Signed-off-by: Deepak S --- VNFs/UDP_Replay/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VNFs/UDP_Replay/main.c b/VNFs/UDP_Replay/main.c index 5b799a50..a5dcf86b 100644 --- a/VNFs/UDP_Replay/main.c +++ b/VNFs/UDP_Replay/main.c @@ -2646,7 +2646,7 @@ main(int argc, char **argv) fflush(stdout); nb_rx_queue = get_port_n_rx_queues(portid); - n_tx_queue = nb_lcores; + n_tx_queue = nb_rx_queue; if (n_tx_queue > MAX_TX_QUEUE_PER_PORT) n_tx_queue = MAX_TX_QUEUE_PER_PORT; printf("Creating queues: nb_rxq=%d nb_txq=%u... ", @@ -2673,7 +2673,7 @@ main(int argc, char **argv) /* init one TX queue per couple (lcore,port) */ queueid = 0; - for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { + for (lcore_id = 0; lcore_id < n_tx_queue; lcore_id++) { if (rte_lcore_is_enabled(lcore_id) == 0) continue; -- cgit 1.2.3-korg