From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0072.outbound.protection.outlook.com [104.47.34.72]) by dpdk.org (Postfix) with ESMTP id B32341D039 for ; Fri, 8 Jun 2018 19:11:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pUPpVNU2zf6g1ITYhNMZb2e1y2V3G/ZqxF2WOWAY4lg=; b=OABe4tvSvJPbRJjRIAaEJleyqBQEm7YJGHjk9XtoGU3vSMQtgHDYInbf3yDbb/Rpf7hLnNFyjLSFpMhUgbQsryn16Jh1oPPjZiGlm9saEarZGdIrlnz9onMDJWnuGQQWA7CbTxGDW2rhFgvlIdUHfm9BS2kSgP5sDStgZ6NFwPg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by SN6PR07MB4911.namprd07.prod.outlook.com (2603:10b6:805:3c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Fri, 8 Jun 2018 17:10:58 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Fri, 8 Jun 2018 22:39:26 +0530 Message-Id: <1528477766-15788-16-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR01CA0111.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::27) To SN6PR07MB4911.namprd07.prod.outlook.com (2603:10b6:805:3c::29) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4911; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 3:C3auW92SVAovIJHzrJd+pXDEeDe0SU1//M36yyClMOuiQPUL/Ah3rvdnRxQn73133vHieK8bGi4IB9ivJZ6n3BwIsTI1jZzjnBk3Ly+ZfOIi8hFQ452KCdhwU/Ic5BU035QM1d/duQKlBPIR9WWeRwxj80DXOGy219gSlaivW/xJomhhko5JazebpRjzNC0CgH7F1Ht1GbQ9E6fXJRKCvYUZclt7OZJhB72EJ2fX0IB+iIFICAPVN3uQ3m/dMPaP; 25:qj8OZ9fsw/vdogQLAHrybmvJBI8ZTLAQtJ8X2IdTEB5FyzcyE30309rbzHdP3qTD68tj1TzeIYMuQ040EeSw8629pESlUqzsUYnqHA7LytuVYqfH+bKm/zQlCI8OCXSfE/XSXlQrZ90vYQk5CK/5o8e7S8q6i4KzM/T0N+d53m6Vze47pF2UnhHmEv53jZ0r2Yx7G4fr+VWgT/9Ql0riPpxZg0FNE73lmx9gmY00qgPxV/OQcBZCBa00e2F8V9QikRdy3AXSlsLLGJu7JwGg8FO+GaQW+QRMhMYzzNoajU4IIaUrEPcs3xMpjONjpa9oZm00AId+1ToESSTJu2nDbw==; 31:kTa74FaYAiU+mb3FWIANOzl6pAuX66iv7mmMndiWKgYKYf8wff3G1ZZtWagVBGTk8IS34MU7NFXXiDPiBVTJX+4z82ZQyEnrZmzLRoXpB/5wlgctlrNMTliVT238xmzLDYWnHuPdYL+idsTGPOeUV13hGSOujkRT6rHJEijpL/N/Ok/DqT8k+OuEf4zBctZNXmX1K7d+CPrO/zSUEVKoJ1DTSHctt/meIDuIXUQoqgY= X-MS-TrafficTypeDiagnostic: SN6PR07MB4911: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 20:ksnd5miF5nFUem7DOxoOPEDx4ae+yffi8oOMAvDX1qxqRiKeIRlpGkzDL+p5NoXzm92Ooy8WmHu3EBiO+Vl6s4h5aRObDCPrK7YNSaZCwl2Yvsyxy6ijaMYUaxBeQP+v/XaiEqYiYziX5bhgGPYYb5rFyX2FlrGe10Mblz/dEDev/DXl3QvJEn1fL0jLoA6BxQy4vnyVGOU2RLoEqjAbxoXJsjthzDnUWvPDjDZEMMQUqwFaofStIr61dyQRVEJe4UzwgBX+T3G9CWn/kshY6Cm11FlxiR7PVOYKbH9AywhlfV1pNkWoQVQjl9YWCG/01FKPni2gcnI/h4dA/AU0iCPAuTgi3CWRAIwZfLpyOlmd8w7mqpOOLZMCjdPYX1fUgEtzlnLGKDNUKmRptTW+iqjLjcPeT43cVBK1ELd5X7WYe2uqD9IRS6n+CM4avjrsKpwU9DNak6iHzTy8NbUH/76gSsLOOnEvHAt6ed/4xY3MtIqHfPDDC3DWnyW6s/WejXgL2F05vUp5Im1ZE1upYwZnyF24952tqfrM8V1TIbIxBF77+Fwsd5spPLpKLrgjVwkDKfKZP5E8ARTu/Nhleu7f9/XMarngpnj61V1IAJs=; 4:8slKdBfbC+IU8MO2GfvwuDFgAAg4nSHmirtOtdB+AgKW5rRzEn1GXcYvSqJk09OsJ49e/o2l96FD80Ug1BdJqrJnJ/d7Y1DCg6FJn4crxo2XxD1LBYCXe08QTlUTpnF20SgDRy9EBx61Ab+TFr1Or2u40OEretTDVNMKfSYdH/KRxFCQOfmK5u7Old02+uqWBIPuxxmzeeqvXR/ips2hWg0fCGp6dZYlF9Wtf6HbdDRoCAn3t9TuQjdZKR1frrjUnnqcfjP6zau7dSKsQwsu8w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:SN6PR07MB4911; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4911; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(376002)(396003)(346002)(199004)(189003)(6666003)(4326008)(54906003)(76176011)(5660300001)(25786009)(48376002)(50466002)(446003)(386003)(186003)(11346002)(16526019)(2616005)(42882007)(44832011)(51416003)(476003)(66066001)(110136005)(36756003)(316002)(55236004)(2906002)(7736002)(81156014)(81166006)(8936002)(50226002)(106356001)(105586002)(68736007)(52116002)(26005)(956004)(8676002)(305945005)(53936002)(6512007)(47776003)(486006)(478600001)(6486002)(6116002)(72206003)(3846002)(16586007)(6506007)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4911; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB4911; 23:988jrvNJaLkBRaQS10+AG4ZwiV7Cog2UtFztMmA9m?= =?us-ascii?Q?viO2syIksK22ALHuCpvHd0J4ev4xXeWvmj5MSC6ieZfsbGK7zt5tZ10sGKK0?= =?us-ascii?Q?d6a/Zxby7Mt2IW/mX0uu7H4jstJSITRToKwcj+b9mWe8wemHxPhtcHD2La18?= =?us-ascii?Q?xUCeX1KtiBWqxOM23BK2ve4GR4KZq5bXLQaxQtIFODCXxqxdI2QCCJxT1xhm?= =?us-ascii?Q?lHpkBFZ/uPkEMBblPet/IGeRyGiA+Ctd8zTogEzEKcPa2ge4qSUbh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qRPJNctA0jiEQc5YMYLK4fDf7CWTffRhLCh37RChbAEW/aQzP+c1V+PUm2kXQ2Y8p8C3Ls0LJP/p/U9XZ/2NFYI9p95YnG32gbrhQ+3whWA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 7:f66S/LZUf79U6cH4pEPHnahBItzScvljmtutWJotVaUDQFMnrZ10UJb/JT4gyuwdPK4BuSIv/15Om+N23Wx94GYWPdCsSmSb9wksjz3CJzhbvVDF9BTGJ7SGvcEW+yVhMIBeUF6L7a1nYbDYUXAMyjBz3RE1vLm5cQIgo0J3HLL1dgqBfD54KS+MU8KJPUdnJxAOLSNRKrk+YyLjGvFsNWYIRw/5NMM40r9ZnPqjG/tK1t0nrIfyvSg4itCf/Aot X-MS-Office365-Filtering-Correlation-Id: a83477f4-57b5-489e-ebcd-08d5cd62cecd X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 17:10:58.0868 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a83477f4-57b5-489e-ebcd-08d5cd62cecd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4911 Subject: [dpdk-dev] [PATCH 15/15] examples/l2fwd: improvements to the usage 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: Fri, 08 Jun 2018 17:11:02 -0000 Fixed alignment and split the usage print to aid easy addition of eventmode usage prints. Signed-off-by: Anoob Joseph --- examples/l2fwd/main.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 3b697d1..ac81beb 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -66,15 +66,20 @@ l2fwd_usage(const char *prgname) { fprintf(stderr, "%s [EAL options] --" " -p PORTMASK" - " [-q NQ]\n" - " -p PORTMASK: hexadecimal bitmask of ports to configure\n" - " -q NQ: number of queue (=ports) per lcore (default is 1)\n" - " -T PERIOD: statistics will be refreshed each PERIOD seconds (0 to disable, 10 default, 86400 maximum)\n" - " --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default)\n" - " When enabled:\n" - " - The source MAC address is replaced by the TX port MAC address\n" - " - The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID\n", - prgname); + " [-q NQ]", + prgname); + + fprintf(stderr, "\n\n"); + + fprintf(stderr, + " -p PORTMASK: hexadecimal bitmask of ports to configure\n" + " -q NQ: number of queue (=ports) per lcore (default is 1)\n" + " -T PERIOD: statistics will be refreshed each PERIOD seconds (0 to disable, 10 default, 86400 maximum)\n" + " --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default)\n" + " When enabled:\n" + " - The source MAC address is replaced by the TX port MAC address\n" + " - The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID\n" + "\n"); } static int -- 2.7.4