From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0089.outbound.protection.outlook.com [104.47.1.89]) by dpdk.org (Postfix) with ESMTP id E7D881B402; Tue, 26 Dec 2017 10:44:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Qv0yFfcSq06whdEPSqWns3cbVgPQLNWIk8S8652wcO0=; b=nS2s+T4KqvxkObzhKKphMLZpAiwe1jPZtbOV8XQYUxYUjEvNpUV/s6a7OGK4e4cbs8rs5EZvqQFR9uCaoN22DKn3zXBLHkr0JHmAPfUaTQfTUIecmkiza9DFf5hDwS5w9UGyZYYszGHjP/z7M6Ft88EKxMsGPphA1QV1HU2qa+E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by VI1PR05MB3150.eurprd05.prod.outlook.com (2603:10a6:802:1b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Tue, 26 Dec 2017 09:44:54 +0000 From: Shahaf Shuler To: jingjing.wu@intel.com, ferruh.yigit@intel.com Cc: dev@dpdk.org, pablo.de.lara.guarch@intel.com, stable@dpdk.org Date: Tue, 26 Dec 2017 11:44:15 +0200 Message-Id: X-Mailer: git-send-email 2.12.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: DB6PR07CA0012.eurprd07.prod.outlook.com (2603:10a6:6:2d::22) To VI1PR05MB3150.eurprd05.prod.outlook.com (2603:10a6:802:1b::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 07b1cc21-3b3f-4373-12ae-08d54c4551f4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(48565401081)(2017052603307)(7153060); SRVR:VI1PR05MB3150; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB3150; 3:JohrVuYUOeLHSVBy5tdelgwHpJmh7x7uHvDuq0ROlOUq6gnZlrD10t8qNBtVN70pB0HaHVi8PojCKoMRPWLFpyti9DuHGr4JE222ZHTozmQtIKSfkjK+NXX3llG3swN5gGFytVX+1i57ZktBuzTF2PuGzimYb1HwZKueDlQH0Iq7Bq/D+cMzc69AQZ7ysttOAaRB814xqAf9nbyXQ9pI7Cn4ygoyuJEQtR2x+sv4P29Cj3pwTRlx7kJi6Rk3vk3q; 25:jrfY6IyjBeS3Lts4aqsu3hL5tXYQqwe5JKK3HzJhDhKmt45ddjfcAa4nIn8qieOA3D0apsLZyoUb8PzSqn60t2P9xbr+/1kDWptNxLHV2IIP8k9yYOxOWL/+xxBjL1cOODA7UzK45zqdbrwmnkUI19hVt1L1mrmi//vOWPnZslsYbTYLdwrw/y1LcDOkQKip1T9Fig0H7yy6/eoVtt39td7QA77mXKmXZnkDKHoQaF8GXfGl5+poE34JGO5chQEJzHGrBmxWmxZjJldugqH3BeYAmVohxAzipjSboDwHhpVacEVkCmpPTx1LxmtCXtAhXUfOsQn2oGAuFxhzXQHpjQ==; 31:Z0HVJdK4n3AZ7itQWK7//YqxTKej+XpR5uqDFamy73uzsobXtpOc7lYpqenRU7WS/3r68QRbKykDu18YyaTeoEiV5h0AdOyphqjP22n/zlHj06qHz0VL6cRFFD0Ohk5wRhIm6bCfvol8moO5U0UeonlMZCR+li2+XcIIwxoW7QIOQH7kmj/7nS07AuHEP2pKLklAbMe650T7oWcIFNvlREinBPHKWjgRABkK+ugG56M= X-MS-TrafficTypeDiagnostic: VI1PR05MB3150: X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB3150; 20:QrzIiJgdu+gyOhOjuEsRwZDeRzX/r7EMIByub1iOQLkmSz4twpDq1olX3+scRgCT/2m4/YNHMeZm+Ir3wfUUTmr0Ovii2xI+l4C5senoIb4OkFx6M5y0d2LMA5H4mlbS6x3hkWAoRodyrBbnWYTVi8xD1PqKlx/gA6IobFMxoGvrlIZnntZ4EcX9IGsfMcJ+gDgvKbg+WY796pVOwxMKyl4nvDYcP7ssyhvg/rcX2tttU4VYXuayunxC7t3OTjZxQTxiyS1vXY8+mTV3WIN47wXGybR06WkcSz8D1rgPR+HLUcT6PItfY/KDmWijQQVQ1+KA7RYVzoXajX/Oic7Ma057y76vSRDbEhUB3c94tsCWhCqjW3FZ1ydy6mboA5fJetsSReTMscd0ZQhRQYxn4fNhg0+i7b1Wv1IMA0NhDO+BzGW/lxn0UMPbGuQ/GEWtWzx6WOizMNdKwYAshGe7uUMrTEOxLcGgdlA3a0J8x+QsRu++cY7FMQg/cW/rs22s; 4:/hikDo/QfftQMzgGkfHuqiJcjVlbJYv8hYZccwc1uFhPrjTYVw8J5Y3BSZu2dhZa42HNoRODlj/Nx4CfuV6N/Q4zEjPjeKzT+Nm4gjLPPZTJrhZlLUTWcoRqk83HkR3hysXkLNtKtbHIOlXaG+eDY+qAnfbmhluk8lLaCM0+nA35sxTQhfUXRf2Kdm8SbJyJCCp7Y3ErR25boyGuUA/phqoZrwYquOAQZoZH5pKV0FdUxNHtrWhGLfn9VZL16vEIx+uEy3rbKAPagk2lBDtUlsZ9M6sRzxoK2OwAjbkAPmS+lyBid2vBLR8DeLBVlQ6K X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041268)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR05MB3150; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR05MB3150; X-Forefront-PRVS: 053315510E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(346002)(39380400002)(376002)(199004)(189003)(33026002)(50226002)(52116002)(59450400001)(51416003)(55016002)(8936002)(76176011)(7696005)(81166006)(36756003)(86362001)(68736007)(3846002)(81156014)(6116002)(386003)(16586007)(316002)(8676002)(50466002)(69596002)(48376002)(53936002)(2906002)(25786009)(2950100002)(6666003)(5660300001)(118296001)(16526018)(21086003)(4326008)(478600001)(97736004)(106356001)(47776003)(305945005)(7736002)(66066001)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB3150; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB3150; 23:QNuhTqZpZOzffDzFIvPuqjiT8hc23n6wpo6Drk6md?= =?us-ascii?Q?bdn0BvC4Grj4aQpnX4j7CAga2RZeNz/1Dy+o3sXoHxZA09X8ghtmbTnTqcEF?= =?us-ascii?Q?dyPWUnjv9tiF6wEIMPov13A8AAATowZ8hn3Q8Mg85WeJW1LNk9uSyPZFsA0F?= =?us-ascii?Q?jCXGwxBRqqFmq9f9LS0sorVcRQNq0Q0b8Bl962i0pmsPJAOrdlhKDepafvGn?= =?us-ascii?Q?1rKguYkQciT8p5gtbU4lCN+LjRsdQ0PQzASoMRUWLfRrn/p5SRjrtcvFZmAV?= =?us-ascii?Q?MtQQ/iE8ny0GbKu2nR3ukV8GmgTLRb0fIsJEBpX0PkIzRiiychoiEYY6WKCY?= =?us-ascii?Q?KpITBzGAn8kf/4Yhac4KfSTylQsuvAfPp4REoSYqsp5WX775SrWOhlWnUihs?= =?us-ascii?Q?x51Zebyp3/Bx3tQtm/CkD6Jb4IOghbh7AI8wh9SDydzhyG5c20naqm8UP+Yq?= =?us-ascii?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vioDkTtMXecITpLA7W/CvdZaRz8i7YqUVMuBo1f/QRQ9dw6XafyCofN94vR4cGsl1jeqeny582evj+BSmdopHjwEQWmRpP5g6lMsURV5Lk4Ruog/ZmCUX7xxt4Z9sECGHt3vPuJ1pdG/6WP5GoHS244L5C7MHMfUAP9x21GUbYH8uo=; 5:32NR3W8/UJFuRrCve4hQjxl3qmt1Eeg09gBk9cJKIO+3fpgiPOgswitE4nTJplLKoT5lOBHRAd0vbxJE3TEZsV4gWkrZjWDwZft/ZZuS9m3Sl6vaets8hPHUY0xTtVqhfYlDUJ82t2xmtSnxmTOKFYbaX0vPEEi26ZpD7qu6d6c=; 24:PxVfMz4JOIc/Jc7bJXkdkfgVddzbpPCRrb6C09dpRfvqTfyfEILt84tNxmI5lilPKMwRYxQLCP1VIy9dnmAaNdH/i1J/1wYxt3Hk20bXzzk=; 7:8Zsmu1XnpVOQ1aGxccV1WMFl9rQCF/TLnJkO9IEGDS/Vr+h+vmGoABufLF1A0gwkII0Cv13cZpF8mnKp0ppm9c40NZHuAgxlJFAk8Dse2nh6uU6w/FzV7UTKDXfZCXZ7K5qc9iuHEXfOo2aEdl+Y88e+F2un3KhyvV0OlbOvPU8tGf/czGSLmbDTJ3euvA9CRlqyRwpIenoGzMe5ZmZ+mOqFzEN8cFjWMWto6wPhkcrNzwfmb3CsCwo69OFl47Cd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2017 09:44:54.5447 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07b1cc21-3b3f-4373-12ae-08d54c4551f4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB3150 Subject: [dpdk-dev] [PATCH v3 01/10] app/testpmd: fix port configuration print X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 09:44:57 -0000 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") Cc: pablo.de.lara.guarch@intel.com Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler --- 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 86ca3aaef..387fefbaa 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1656,33 +1656,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.12.0