From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0064.outbound.protection.outlook.com [104.47.34.64]) by dpdk.org (Postfix) with ESMTP id 92DC61B513 for ; Wed, 11 Jul 2018 08:08:28 +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=G3BZbcVQThU5FwlXcQ5zeaP4n+jukuTG4Yw8ix9NISk=; b=PjpX+GIbe52SHNbh2A9x5RLzBflsvkMdWiEMc9q9o/RFwbpgKAuTb+cdPCVZ5T2zAQMhDOQHpjO/9Bl5wFlq+4WghipupUacXLkyiF/1g2XkqwBzuUVUqeAx+pYw8WTn2l838NB10cYiTDnByfSenUBQLwMnremP4QlqquDfh4Y= 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 BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Wed, 11 Jul 2018 06:08:25 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Wed, 11 Jul 2018 11:37:28 +0530 Message-Id: <1531289248-20025-13-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531289248-20025-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> <1531289248-20025-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: BMXPR01CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::13) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b11e029-6ff1-4f27-83c2-08d5e6f4b7ec X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:EN1zc7kEnMf6B92CHJ1AsPAa79Pv4CEVmlkAJc1MOXL5VB5vlifTP+Ah1WcyaJ0gz2CS7ePU7iF85i1Y9SlLOdCCyzf5PJiYLGz4H7EETYzvJhD1z0/vVxYs1VotzDveHMDzgKVgoC2WCf5NfjsPiBUxpLQZEw9f/DdzdhxbPxzYehvMAj/e8nm1eUVa2nHlyqruCVUU9qAiEuQYo5RK1QPeiEnxAD7n6tDItCziO0bfmfiwTx42jd6mHUIK7PRd; 25:SRcF+zo3R6Y7Rq25HVVrg9LG4QdW6hCqU9PwKd6f5/JelDJ6sRm7lHeXRzkuvZaCYJnZnIACR3OvMcICdCTbmvfAqajn3ZiPACfeCMMIJ1QQVWsM0AwJ7yRJMY8ZXPeR3kQTtD4ZuT6a9teYgKP182vIp7LyuwvB3lFTV/l+C47t2u/oM2Jt8/sQU34qrmtfFIuFhlSRhOZUA1EsPcy2S8BlmKLHcKRbRtmP96yPtx8b9IHDuZnEHbDYIdB57vmAEP/kA7YXCqUCfM7tb321e1SbB5B5mpUINUjpvg3o7lynEryITxN36hmoSfTAVYqplHdJbN0r9DFV1RN4JK88Gg==; 31:ZCtHKqHrAXxdvGk4frguorH6WmhB59LINroNHYSj0RCkf5/xOTWuKKHrz/8ra5iFdDfWzYXnyU6qTfJu9U5ISAF4uyLU+wCVknVKnk7rkX+NIcq2jZ7bY4rJk2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psxoNV25/022N2o2Dg== 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)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 0730093765 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(39860400002)(366004)(396003)(189003)(199004)(68736007)(81166006)(8676002)(81156014)(44832011)(50466002)(25786009)(6512007)(7736002)(4326008)(6486002)(48376002)(8936002)(2906002)(3846002)(478600001)(72206003)(305945005)(6116002)(486006)(16586007)(2616005)(54906003)(110136005)(316002)(36756003)(476003)(956004)(446003)(11346002)(47776003)(26005)(42882007)(52116002)(105586002)(186003)(76176011)(16526019)(66066001)(106356001)(51416003)(97736004)(6506007)(55236004)(50226002)(53936002)(5660300001)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR07MB4898; 23:UZOzlWOHSRYPffKqcCqgKF+yZQQZUIO8a736uflAL?= =?us-ascii?Q?vp7wvUwuHCFo64toWj16iRSF/WqLYYCyFnFQS5geFeEQjzrxvPnK+cMX9/7u?= =?us-ascii?Q?6YqUndINOElKMBzoEdGq4RLruSw2eFwuiLS+HV4+Z1nXlIXgoTqGPdoslaty?= =?us-ascii?Q?2btBX7ff+ShHIU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Z3f9bNOwkg/Sm7ZZIknTYFhgYOkv+i06XmrJVf09rHlUezZFiFS5bA==; 5:zVCv1UIbdM0Y6ow7qo/ZJ2qdbA/+MqfEWWpwvgJjhResqIp70VYbOxdvQAMr/DIVxIf0sSDCO7UQZVQWuKlYJdWBPFzpAXGYNQfzT3scqkjwl03/F6JRl3NrniJV7QbC1dKqcSuIdNg90MvOUJrtFcWufAd9FoKwLXghbiS4/hU=; 24:oF5I6dLd/Jsd051dCqGFsmndrsxhFu2zQVc6RoF1uojhWuK8xUMm1FI/8eoLKWKoEJmApq7WiZY8b+Lv5UNImPMAJYnJZ0nh7Ft8K14+ZsU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:rwuBU6CGJwrPmQym6tdmlrMQwHoiEv0liodayg95v0ijd1DVIvPsmFChw5hQJ+oZV8cp5Y4oydOItWSO4d4s3di2Efk1NtmbJbw3S8NZIS1VyvWq/vdOrVKE2gjfI9nQzdDsY0QClN6e3U4XY04mwY653TbUxIWGiDpDXxk9F//WFaX7IYyyDh3NY0Ivy/2EJJ67Lr9vb6xFeZd9m/WAlqDHM0qnt24C/d84kDgk4NA5QGIZ0pXLKFo+hHXwBpDr X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2018 06:08:25.6879 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b11e029-6ff1-4f27-83c2-08d5e6f4b7ec X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4898 Subject: [dpdk-dev] [PATCH v2 12/12] 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: Wed, 11 Jul 2018 06:08:29 -0000 Fixed alignment and split the usage print to aid easy addition of eventmode usage prints. Signed-off-by: Anoob Joseph --- v2: * No change v1: * No change 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