From: Ferruh Yigit Date: Tue, 22 May 2018 16:37:20 +0000 (+0100) Subject: app/testpmd: fix descriptor number for Rx queue setup X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d4930794692cf6b74fcf10900922aa2890085076;p=dpdk.git 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 --- 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);