From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: [PATCH] app/testpmd: fix icmp echo tx queues Date: Thu, 29 Oct 2015 09:47:03 +0100 Message-ID: <1446108423-14231-1-git-send-email-david.marchand@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 19F69567C for ; Thu, 29 Oct 2015 09:47:10 +0100 (CET) Received: by wicfv8 with SMTP id fv8so36014912wic.0 for ; Thu, 29 Oct 2015 01:47:10 -0700 (PDT) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" icmp echo forward engine relies on the core rank rather than the number of queues available. This fix is still wrong, because if we set a nb-rxq > nb-txq, then we will use an invalid txq, but with this, we are aligned on other fwd engines. Signed-off-by: David Marchand --- app/test-pmd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index cf2aa6e..314215c 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1278,7 +1278,7 @@ icmp_echo_config_setup(void) fs->rx_port = fwd_ports_ids[rxp]; fs->rx_queue = rxq; fs->tx_port = fs->rx_port; - fs->tx_queue = lc_id; + fs->tx_queue = rxq; fs->peer_addr = fs->tx_port; if (verbose_level > 0) printf(" stream=%d port=%d rxq=%d txq=%d\n", -- 1.9.1