From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0081.outbound.protection.outlook.com [104.47.2.81]) by dpdk.org (Postfix) with ESMTP id 9B62F1B024; Wed, 10 Jan 2018 10:09: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=M7cVzI9nhMJY0xkMm5sFvCUs8DA+/Y4ViwkSiRu/YxI=; b=IdferpROWajRJ8lOzmIhozefN2I8Ei0C1ysgBfe/bRDvTZCv0iNonhEvsV2PP+utCYkYTX9VyyEX5qA3NczOWAO79Epvet+swmIlShk1ISvaNjD80ZdoNzFWBB4Td2M1iHtvSZdxIrewRiYN0ma4/txDdVq+YLMERfelkgyx5ZQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by AM4PR05MB3137.eurprd05.prod.outlook.com (2603:10a6:205:3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Wed, 10 Jan 2018 09:09:54 +0000 From: Shahaf Shuler To: jingjing.wu@intel.com, thomas@monjalon.net, ferruh.yigit@intel.com Cc: dev@dpdk.org, pablo.de.lara.guarch@intel.com, stable@dpdk.org Date: Wed, 10 Jan 2018 11:09:09 +0200 Message-Id: X-Mailer: git-send-email 2.12.0 In-Reply-To: References: <20171123120804.143897-1-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: VI1PR0202CA0030.eurprd02.prod.outlook.com (2603:10a6:803:14::43) To AM4PR05MB3137.eurprd05.prod.outlook.com (2603:10a6:205:3::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3cd70fda-d666-4546-cbc7-08d55809ea6f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:AM4PR05MB3137; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3137; 3:pIFEeAhj7O41fhwVrdRmMS5S7fN6zAygVfShvflH6crKJjd0nzzhnWdI/XBCFc8MORnLpffIXs0MMLrhejUhNtZnKCi5Uk/2/1Gxmrhou0c/5i41NC+PWQybLa44/FP8EEnsoZxoK22K1YqAlneK4qsKmh1n8fVlRlsqAPOc4C9OwMgMUNpsBq/5J3om3XpkVnPwRX9t/hNUSM/ROWTeed/lJXIpoC9a2vDrmDjKk6sOj99E0DLswOS4WN6Batbb; 25:BFLqWFowt8xHltv8USDxwME74/OhNpNF0K9YIsaTyL24g5UJHyA58z0KkZ8dUZFHKxPoohPX0LA0QqcOayWP8Hx10gtiqQlS9klgT7cSzQhqFa+9OXtguA0CxB4y4QPSvUOkbEmZBWA8IyfOJ6Y8TcZAUigz+xWQs3QeXRJK5uNWlq5dF5TAmQqcuhDIOKIOpCaa3qlDUgfB+6oUbjApvB6nx9RhlAAXgQi56ClVa3x4OvEyxxQOYKxgqGmvaezLUUrvyGqWEebofFh8zJz4TT7X4zqFCSQW4WPRRDqDqmED4QGvCppZGbSGjtzzycJcH8qZehWvYJnNQLc+Ho+32A==; 31:GJNQNRJ1PQZNw6OMLU3nFPC+aAgFy3RGFeuliKgiyaSGDZLun2X+y/0qFmghCGQcvHEqgytmm13pcuD0r4vNqMkF1K4a0yORVut2YwO2/lPvg9TYGUsdq0lJ7Kv5F0KQZzY7H/pxVkO98mEX1tdjW/bksYAkavPhfI4Qk8elKKdo9LhogkFfHZqL3PtKx02MhIafU9k6qtc2ARnK3UMA88odEucrwD5pw76Ik/Pc8SA= X-MS-TrafficTypeDiagnostic: AM4PR05MB3137: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3137; 20:TiiYMSOnQCXEgA9XkrBog8CGtXwkaUYrbTZV+EQl58KYVFHeuiI49ITujpVk2X4QV6boPat9ybgoUFerNedJR+iQdkg9aAg2gsPPS53S61o5IM0d7/pQrjg0/eWWTdOabeXY0MiCtG3Lf8yGqmT3oUZ5k1EAO+vs0VZSdQGILdbmbziLEVV1q398kwfvAw4HPwB04no8Em5ryzxPRsZpnK65zXrtT8Q7G23VxIkNb45vWPyI+LjhqEKoHWtfRmpEbYpiOP3rlI0Vdyh2o6ZCsPkC1sOP0xMsufHGYUJJJuaf/4RnSoN1lemhCq/eVfY49Apj0+Q+hNwIASQ9MgLwpYh3xpe//US5swheOXqWg4VF7luESBmnYZBpPrT40HUq4l+kn/yMa6ptLOLCNIeV8DEv9pz2oGnLCwAvdXl9RKb9lIZoM4pd/SkIwAe150ZaEmjyn09ZbNH8E9KhTLdMLLyo/fCtPax+x7iOpQw+JKf4/JhCxwpGt85YfHJ4yPTu; 4:JixBD0a4eEsqnJRg9CmIWPXH02KoyTed28I0s5yctYwaV94FU/wmjv9CVE3M+W9KjKny0wCB17UGMdcYnox3h0CFZZ88vd/IcEWVdvSdRs1lUA3beeYvqASXiLdWHWaF23zzv6w/YLyqZ+quvxTzDkQnIznVLrZnZO+wOC0i4czAWpNfjF1wcmztUFQ/y2hQ1mU6FEJZBnq3MU2laK7ma/5fo3vMJEpzpD8oFKs9P46lq4dWja9xgEcBnKIouUUWwtyT8DcUv/P+AlWRG8jqe8yfbThB2YHh1b6auJH5DsOMXnC08T08GeKJUai8Tu3E X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231023)(944501075)(6055026)(6041268)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM4PR05MB3137; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM4PR05MB3137; X-Forefront-PRVS: 0548586081 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(396003)(366004)(39380400002)(346002)(199004)(189003)(6666003)(478600001)(2950100002)(5660300001)(8936002)(50226002)(8676002)(81156014)(68736007)(86362001)(81166006)(118296001)(305945005)(7736002)(55016002)(2906002)(21086003)(6116002)(3846002)(106356001)(105586002)(59450400001)(316002)(50466002)(69596002)(386003)(16586007)(36756003)(4326008)(52116002)(76176011)(51416003)(7696005)(97736004)(16526018)(47776003)(53936002)(25786009)(48376002)(33026002)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3137; 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; AM4PR05MB3137; 23:04KDt/xoNpCy+MsLXkSTANn7AkvENzJbr59zD8eXJ?= =?us-ascii?Q?iqRFIPNZwSR91PHlfsfnFiqI+bDMMWyuyriHV9IIo4vsMoOzobtaKMxDcGgU?= =?us-ascii?Q?B6ZaQ97pCtpMrmdxzCs8psLZUULquzyprfVTlPbuAcm2OhbrEBrto62lE6Nr?= =?us-ascii?Q?oWUiz6XnKMh6joxBtJH8gDw0lRkGr+ICyQ18RvbnM/ReOw9WtXg89H37ocOx?= =?us-ascii?Q?eCUjebf6pDv3hxHgKVXRoTHB4s4uq6TCEt/CZg7JIdLV+dTFA/qLS9e8Fux+?= =?us-ascii?Q?nJJ4iYersUDNUNuOIFERAxNrW+DNhK1KD0vyElVld82KyCUitac4lsgzyIOv?= =?us-ascii?Q?yc7NM+gCUyXRr6NpdMdQjUlrsSq/muiaD3kumbdjrzCB5mH9t/4OXs/1alzN?= =?us-ascii?Q?+mYUo/1u4Xkzx66I4x2+2+wr1kUPpl+boVDtLemvNekA43+whALMDhQnC/y9?= =?us-ascii?Q?SQQIDv2OZULJWfK/HZ3fCs41UAKju2azy5nAu62Tfa4tgJb2XmMyE5snJDQk?= =?us-ascii?Q?bWrDfAjl+tTbMylbIvYGYLBE4Ejp0DPKa1zkn7LDRQwKb4nSV0taN/DMGx6u?= =?us-ascii?Q?lVStCLKe7FXq90tP/o7LjzfsZhH+ckfBPO5IF060QbSenZeM5c2C2irF1uFj?= =?us-ascii?Q?PQsiDxV3mJa2C4YDoM0kFUcSGkzocYG9uuTjyi31IuZPs07u7GWY1wFPV6Tf?= =?us-ascii?Q?sople7E2MbRgK2fGOuMtDqh2Y58awiXdma/Ty8miM8YdSyAo7bRbKn1c2nb4?= =?us-ascii?Q?RXpP2E8zUr2ng53zC46T0B7P+2gSIsQJqG05YDcS6Nk+YrYYTaqs+aBVLD3k?= =?us-ascii?Q?2ddI8ms6s58WefmI//fn1x00vXUXY8LtwH02A0yLyX42LsWqUEnkjicoLmHC?= =?us-ascii?Q?7jayWWlVNFJWjylgjfa73pMerteddbjDQRWAwbh8GJYy6x+e06puo51GBkuG?= =?us-ascii?Q?qwI6pOCSibnveoZ0mFYYBCalHyRBle1WcX16Vg20fV/c+69QHtvim8X+TReF?= =?us-ascii?Q?ah0985Gle4HV/+cQjgQUFewn2cBnEk2BAakGn/6DS009aBO6MeVCQYOQvRRW?= =?us-ascii?Q?h3OprVK1S9H8tz20H0N6+hZW4wUbyK68z9AG0W1M+9c5ZipBl4MhryiM4VC5?= =?us-ascii?Q?w/1Qkji6PWGnpm47Ae/3nfSv5xzVsV9?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3137; 6:PyF2IOsky5JUA6op3KsEpXM9Gzrik5iAFl8ggoDEb2Tm0NVp2wnNkmCWwlU6EktT5qJ0PjvL8yIswCk8tX19bQb3H35rXJ6cw1HWVDLorUMC9uSFQw9ZB+GTNoeWCCz/BN+obbfgXHzc2LUrguz7W6pBb6nkDBLdzCiV7bcKWB+RZyAD9kLxGgbLFHDXVUx3iiQtFFfyMaNgu2MCmiZFB7U8m92rIhfSWeShIVGGnlVzak8rPoMdaAQtLbzfa4/1fGiDdPZqZheLZ2mMX7kfUgO0WohTOG94XUQpSZk2fUeRWVkNau+8qLTWcbOdjhV4Af2eYpBU52I51h9MJA/b1NnTNYQw90UJKtJriPiHx94=; 5:Cw0W66J7Z6aHFBUXe0eyzcXMkpJvD2tWdJwzD+BLBn95QI05CYmEHsLyh4iGsfGTv06XNQnvdSiwogfNSvvme2w9KBGgNIZ9oMZTDsULNGNxciWEk7mTppr2J1Cb06tQZFItP2p7aiAh4Bkz/WUFQ+iUctO9WruHrchR6PuArGE=; 24:+ebNiZc6U1QBdcMqasLy570VxfkVDpPoJWoreqzY6gyrhAXuKzaXvAx9uvaIySMKynp6a19BjB1qM/T50DblE5ao0QMiyklRkA4bg/hySbM=; 7:K1wPOGfgE0mew85NWnJ9Ra2GeCHqTwH0xllMZ19oVPBBCM1mk3J3vZdQ1Ml6vnvFZ/xSev1CqwLZu4EvbGzHY7P/GyRHGNUdcGLBtIbgTjbvKi73J3Be63MNLURWmWXDVSEi/VnjTO4DNOIuhi5SgGfWTSXVX3QdLyRd++U/qw9I1aY7eVEyu+GK3HrZwqxa22qkkaRYR/GnbEWWna/vIAzPHXHkf8L9siBiN5K1b/CWLrVd6AtQ86PWF248tby5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2018 09:09:54.3938 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3cd70fda-d666-4546-cbc7-08d55809ea6f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3137 Subject: [dpdk-dev] [PATCH v4 01/11] 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: Wed, 10 Jan 2018 09:09:56 -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 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 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