From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690081.outbound.protection.outlook.com [40.107.69.81]) by dpdk.org (Postfix) with ESMTP id 737631E9CC for ; Thu, 14 Jun 2018 12:19:38 +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=C1a4pDyrFGqUT2GkrabTLSYdYZjYAQGXCJrnuhm+0N4=; b=LPM9O9CTgRCMpQLly92Afn1xfe8mXhrt9jJcn35B0jxv58yCCnsa2tAkBm1DdaTbmWV1hgkI9I7OpVepApg77qUY4nKfFSXy3A36k23qnJULTC64kQlYwTDErCKJcub1IFVOnCh35t9oJP5iES5tkn9C6r7SAHpxIN5kqDRUJKY= 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 BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.19; Thu, 14 Jun 2018 10:19:33 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Thu, 14 Jun 2018 15:47:57 +0530 Message-Id: <1528971477-14156-16-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528971477-14156-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> <1528971477-14156-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: BM1PR0101CA0031.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::17) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b0b355b8-ba2e-4c60-334b-08d5d1e05424 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:eHT6wpnB0EgDEPxLPjeyBNhL+GgDHmEXKBaMbzmWwVU/J/snYGGahwalbJK4NLLxJociFrByQRfdr5Ykn00Cm0pGl/USZnp9ZcRnYYYLfYHCA7t4h7mznQpi/X56znzDqduWPwJyglh2P5VV23gh5SU4Ejg7dOulSbqmsMKJdK4BsbpojBK2LXycIqiAwP4uqnwBFyqiHLWJUy5C2bHXLLfdkbMJsQyVIm59IqJ8G55mNnKo69p4VXVlpXj1fPBs; 25:rS8eW0iqKwd4VKGcxnYqIbZKi50G7K8MX+/clPEfHuSNKVFyKkVB9DqckeBaN/CPYj/bQdJHVcZrBRl2xDMQMSE9KBacvgm1KdV83zhtDLV0zdpzSbecwDsZKPYBxQHTJ4roA7lVBO91ywUzZdDPWvAMplTCClnE3qapDnllHjs9pO9u2UwaT2G8oMzBluD7kkiSur3OcWDeMRes/G8mBKPEmpg51ASutGviPj632KgiHucL0Ay++HotcuHZgNm++7Jy2NPRylsVBgGw6cPcbAiFeevhKpZC39toMDaHrKssCHBsCjzxz4La7BLcbftCtalEZjYzxzNpHY7BYWGqfA==; 31:JOs2RU7jfIi5ZuppPj1d1a/UTgaTSUpFcb9iPoT/mNoowUxUvO0XdMxy8+4PEkTvJMSrVBi3TeoKNELc1p+ZazJNnDbUe11ZFJA5UEbdLue/hy5NA0V0QYBh2qsNaPdX0+DDIPeYeKMFF7S00zMFuS++jeGnmTkjHn3jKvgcYEECL7j9evQgpK7quvMsk+CkEuuvup5wL4hV8feu5nZzALLmSOftNF1HSuJ4BbAvQwI= X-MS-TrafficTypeDiagnostic: BYAPR07MB4902: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 20:tU6E+iZ+gu09F/KEmdOjl4l+6KgkCgb60KAVEesIceM+tm7a+EOnAn86xSFIU1rebOFGFcYHQAb85aAekxKjtLdxG7HMTPshofbc8UH4QOfTAr5yl+vZchmu7pfvM+rIoyxXKX8RUj2FHqiApOIMKHqwQ7Rivzca7q9NyanTflU99ducatjKA/mJHtbe/7cdLbm5wGYA08JcIf8MyJNOHbjOiqjUWn8I/AneVxGOWNrmW3JV7CPWfWCpbvJ/s6/FKiVfcw/9TDDboYtmEOlaVbSRUOUi0ICEYesgAknCoPouIysjrKsE9YnVhqtWjQUKiPPvQy58KqCcwFf5PJAbbEx72PxEj9C8jJW/dUW3vRaCjKhmZThalEzVWzCwtKjdFO3w0k/BS8irJm1WsHcyNdI6ACG2rHqHes1k9tCY7g0DqCiq3PmjWZoUnMc7Bf0kAZzf92VP4fVncOFWd8bi8xYFcuFfzLqy1EwzinRNYe63a4SXze16iz3TDeQNTarEgyFUrCJgGINq69AqYAyvzmpeZlV1vuDowZbZDBd4cMYaOm7GD1/pW+mi6suOwDxJwMKgP29qSRFBRFLXMVBDl+wmlUiUV+7FwmLYNCIm0z4=; 4:YmMdFEKHhc2ZWBFWF24M/0DZRVP71FKE0VRbF4+L7RZFvSGOdjRXllM8EDIe/DzqRfn1QbVGv4yd3jo8Fq8xfLHIz/YyhkK0zUYdOqxFND8E9C4Jci/iKs/JvkQ7mqUiq0PzYy3twgu552Vz518+BFvM6F9+tijAB0/RNasQd3hPJo7cp5e4qmPeMm/BBG+tpggJ3BFoUx+7vcw7jTXhQBcEdqPvjT6IXUkbYJ27w+NwfQIf6Pz3FlP6AYzk7KScs9wqLD9Zp0adECvkUYDCHQ== 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)(3231254)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(39380400002)(376002)(396003)(366004)(189003)(199004)(316002)(6666003)(110136005)(68736007)(2906002)(66066001)(54906003)(47776003)(6512007)(5660300001)(50466002)(72206003)(48376002)(97736004)(6116002)(3846002)(53936002)(16586007)(105586002)(478600001)(6486002)(106356001)(6506007)(36756003)(11346002)(956004)(25786009)(4326008)(50226002)(16526019)(186003)(81156014)(486006)(81166006)(8676002)(7736002)(26005)(8936002)(2616005)(476003)(386003)(44832011)(55236004)(52116002)(42882007)(51416003)(76176011)(446003)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; 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; BYAPR07MB4902; 23:+CR3Vhf3Oaz0tu6Wlz7e/VyEa7m38tNHOHD9bVCiJ?= =?us-ascii?Q?Wpkr4QipKFJwukC1sAI/ozfYkmE/853Cf6z7b0qCfimETbc3ciFYe3WXoJvW?= =?us-ascii?Q?QfKTAnLDhMHPvMYJSKkYLOP80jbYR+2XtOS+pSprADwxZ0CkgupL88bErlml?= =?us-ascii?Q?9CIWxqrkK93S4lK8CL1RvILjOAIvSVr7nJBAbyfg02ovKTGpIKH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jw+j3/sstgCU0HdY5WAP+bzp3viO92sCxtvv5Bsy96DwbCspek=; 24:m1cYFG9m4wszN2J+K62us8ZX0lPjsGuFkV5Fzcr9vx+AiVVhXl8991wfhgFuxI8zd8Qt/Hhmls77nuftw9hc8vOyiitzTwf58KcqNPgSmJY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 7:RGGHkISzFAFl0nvLhBUSVsFf74vP4hAqY6I5FBN9g13sFWmXLVasucpKXU7d8u89w5KlHULITV/4U6p1ox4kCPbwA1tR0Q2YEjGkiOcXYuNKPA1cyJMTzWuLuq035CSJ9uUFilE7vAk/YynUxoi/yIjDM3zsgDaEWfx6ZtD3brrCY66qvUmdwjdqdK+jrvvalL26x7gKtOSxJRRXu5j+avodHld5MjcdWhMu8OrrBfF41daHeQ7ogjcIE0+5pSCE X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 10:19:33.0862 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b0b355b8-ba2e-4c60-334b-08d5d1e05424 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 Subject: [dpdk-dev] [PATCH v1 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: Thu, 14 Jun 2018 10:19:39 -0000 v1: * No change 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