From d4930794692cf6b74fcf10900922aa2890085076 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Tue, 22 May 2018 17:37:20 +0100 Subject: [PATCH] app/testpmd: fix descriptor number for Rx queue setup Wrong index used to select descriptor number, causing setting up queue with wrong number of descriptors. Fixes: d44f8a485f5d ("app/testpmd: enable per queue configure") Signed-off-by: Ferruh Yigit Acked-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index c3990d6937..35cf266741 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1689,7 +1689,7 @@ start_port(portid_t pid) } diag = rte_eth_rx_queue_setup(pi, qi, - port->nb_rx_desc[pi], + port->nb_rx_desc[qi], rxring_numa[pi], &(port->rx_conf[qi]), mp); @@ -1704,7 +1704,7 @@ start_port(portid_t pid) return -1; } diag = rte_eth_rx_queue_setup(pi, qi, - port->nb_rx_desc[pi], + port->nb_rx_desc[qi], port->socket_id, &(port->rx_conf[qi]), mp); -- 2.20.1