From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id D38871B1B6 for ; Wed, 24 Jan 2018 16:36:53 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 899EB2221C; Wed, 24 Jan 2018 10:36:53 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vSqmskIiwo2/Xo+6X dzcC6QRmZ6f2F40XzuEkQe4fU4=; b=JSkKVaGqyRYIuemMpGVBCCYE2KeNgu7Y2 mv6BPx3hThflvq5izwRZu8fU91dLCL0UScJk9oqmiJelimB39dsTaET9mVdmMplm z2Ipy34MLZZ34wqnDKp9RSb8FMKMpHNtTkbRnekYwjk/zDHOcq+wuPsKgzPTlWWJ 9XyxDyj6RyjOtIOfH4iQj2q5ESac/vEkRrieIA36L1iHMD61bj1TXbqtXuX1/yb5 +sgL0FiAAVua/Oo0zNuuCj/3xb9SbwUbHAbMRKzYgCFmlP8p/Tq+dZthmocsCk6A tmI4raP5KD+EsRPUfcXt4s9VWwDUbMLrd+j2Ih560/3OWY8cz0cWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=vSqmskIiwo2/Xo+6XdzcC6QRmZ6f2F40XzuEkQe4fU4=; b=Rv/kKCKx vDXMfBV6z1wxhDwg6gUUizJhf74fPoqqe64hnuU2TTDEUewDu9FeJEWClCnpC94+ Y1la+tcP/dHSMhhItTpA4FR3iKdcUIaP9m0F7QQGM07l2ApheX5VoOrFasqLhPqr B6UFtIQoWbe8d2o94KtQeRwB5Z0vmbz1+wzH4cNVxJLoib2h0dqVQS8nitqjExmg Wx7LqaDVSIBCtB9DcbbOshXGSQkN5oQsCPckx5Sg8X1LIzSwtH/MWMhLmDHl5aVQ f4+3UfsLNXjlH01U7NFaAWQD2ib58eDt3mGjZPm5fHWmKEM/OWc5ZL43FpN2eADJ qD1qpi+fBKZuMQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 6D9AA7E354; Wed, 24 Jan 2018 10:36:51 -0500 (EST) From: Yuanhan Liu To: Shahaf Shuler Cc: Wenzhuo Lu , dpdk stable Date: Wed, 24 Jan 2018 23:31:32 +0800 Message-Id: <1516808026-25523-24-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'app/testpmd: fix port configuration print' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:36:54 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From b151124f33c4e14c30c1e14ab09fcb9d023556c3 Mon Sep 17 00:00:00 2001 From: Shahaf Shuler Date: Wed, 10 Jan 2018 11:09:09 +0200 Subject: [PATCH] app/testpmd: fix port configuration print [ upstream commit 75c530c1bd535110b31241bed63e102d922fc885 ] The print of the port configuration was only according to configuration of the first port. Fixes: f2c5125a686a ("app/testpmd: use default Rx/Tx port configuration") Signed-off-by: Shahaf Shuler Acked-by: Wenzhuo Lu --- app/test-pmd/config.c | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index cd2ac11..8a2d30c 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1655,33 +1655,45 @@ fwd_lcores_config_display(void) void rxtx_config_display(void) { - printf(" %s packet forwarding%s - CRC stripping %s - " - "packets/burst=%d\n", cur_fwd_eng->fwd_mode_name, + portid_t pid; + + printf(" %s packet forwarding%s packets/burst=%d\n", + cur_fwd_eng->fwd_mode_name, retry_enabled == 0 ? "" : " with retry", - rx_mode.hw_strip_crc ? "enabled" : "disabled", nb_pkt_per_burst); if (cur_fwd_eng == &tx_only_engine || cur_fwd_eng == &flow_gen_engine) printf(" packet len=%u - nb packet segments=%d\n", (unsigned)tx_pkt_length, (int) tx_pkt_nb_segs); - struct rte_eth_rxconf *rx_conf = &ports[0].rx_conf; - struct rte_eth_txconf *tx_conf = &ports[0].tx_conf; - printf(" nb forwarding cores=%d - nb forwarding ports=%d\n", nb_fwd_lcores, nb_fwd_ports); - printf(" RX queues=%d - RX desc=%d - RX free threshold=%d\n", - nb_rxq, nb_rxd, rx_conf->rx_free_thresh); - printf(" RX threshold registers: pthresh=%d hthresh=%d wthresh=%d\n", - rx_conf->rx_thresh.pthresh, rx_conf->rx_thresh.hthresh, - rx_conf->rx_thresh.wthresh); - printf(" TX queues=%d - TX desc=%d - TX free threshold=%d\n", - nb_txq, nb_txd, tx_conf->tx_free_thresh); - printf(" TX threshold registers: pthresh=%d hthresh=%d wthresh=%d\n", - tx_conf->tx_thresh.pthresh, tx_conf->tx_thresh.hthresh, - tx_conf->tx_thresh.wthresh); - printf(" TX RS bit threshold=%d - TXQ flags=0x%"PRIx32"\n", - tx_conf->tx_rs_thresh, tx_conf->txq_flags); + + RTE_ETH_FOREACH_DEV(pid) { + struct rte_eth_rxconf *rx_conf = &ports[pid].rx_conf; + struct rte_eth_txconf *tx_conf = &ports[pid].tx_conf; + + printf(" port %d:\n", (unsigned int)pid); + printf(" CRC stripping %s\n", + ports[pid].dev_conf.rxmode.hw_strip_crc ? + "enabled" : "disabled"); + printf(" RX queues=%d - RX desc=%d - RX free threshold=%d\n", + nb_rxq, nb_rxd, rx_conf->rx_free_thresh); + printf(" RX threshold registers: pthresh=%d hthresh=%d " + " wthresh=%d\n", + rx_conf->rx_thresh.pthresh, + rx_conf->rx_thresh.hthresh, + rx_conf->rx_thresh.wthresh); + printf(" TX queues=%d - TX desc=%d - TX free threshold=%d\n", + nb_txq, nb_txd, tx_conf->tx_free_thresh); + printf(" TX threshold registers: pthresh=%d hthresh=%d " + " wthresh=%d\n", + tx_conf->tx_thresh.pthresh, + tx_conf->tx_thresh.hthresh, + tx_conf->tx_thresh.wthresh); + printf(" TX RS bit threshold=%d - TXQ flags=0x%"PRIx32"\n", + tx_conf->tx_rs_thresh, tx_conf->txq_flags); + } } void -- 2.7.4