summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-06-06 08:24:48 +0000
committerDeepak S <deepak.s@linux.intel.com>2017-06-06 08:24:48 +0000
commita2e88f8fd9fe164bdbac4e817c164bc84a68f8c9 (patch)
treea781107005a3b3391533027a22b0deca0a8b5c09 /VNFs
parentd715ad86b58b8b6632602e4ec682be4feddea9d0 (diff)
Set rxq and txq to same value to enable to run UDP replay on single thread
Change-Id: Iee26005d5e90a7481f6e6fb3c7441a2011fe5596 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/UDP_Replay/main.c4
1 files 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;