From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0053.outbound.protection.outlook.com [104.47.36.53]) by dpdk.org (Postfix) with ESMTP id D29811E474 for ; Thu, 14 Jun 2018 13:50:32 +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=/5h0uRgl6iUQ9ZWbcqaEO7TqDPH9vPJ8ekP6GNVgp/c=; b=UYIefvU2GevkMarcDYrNxr8TJEKz5uyMtPnGtaOkSKlnggg+s3OHmFf4xhCxhQ3D8oc9n6CA2gofQgdFpUKIorJfzysPed65Jkn+w4zfD3DQ60UomqeEdy2QouLd+Q15xYMieHRJObV7z7iiVMcB3bxiYI7HidP+FHpbqK0bAN0= 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.863.16; Thu, 14 Jun 2018 11:50:30 +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 17:19:06 +0530 Message-Id: <1528976946-14396-16-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> <1528976946-14396-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: PN1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::11) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5684f88a-b58a-40e0-6ae7-08d5d1ed083b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:QvpIBdgKkZnQM1kAhR2tcVUGh5WiqEWhpGG2FQfb8OmDpCDG80Nnp2WgBhjLBKl3bwVm72GvzZ09kzDeYMCPwJnxDHaTso51t02bj2MGrlxNpvjTKSGJHP8XsIzNl+moQXPC6eD6dtsa/obhT+nlSy8+g6smtrDaKPHtuayN2JNqDwoipA2gAQZpEdSx+tszkM11n8kjYYbVDeX3D/b9vfkrKf98VcEdzVrzEPtt3c3LZL9ix9Tk7fbsvC+Dm3fK; 25:9Br9qduj03LogEgn1OPNh/VWdPu6lmzU/uYdDbRFakNa+LAhuBIn8P+p+wJN94qH9M6j5c1oNEgwi7QOlm/4fgZ10ug/eFcmQ1prAws3khxxuVhPZY9NntwPklAZBtt4Hg1e7g/3Q+z707MjY58dHkXQs+FtXzpJ5kOhBsL0EKJm5+5i8WwE/RttgAtqKq+PguBDT4tfV0p3KflG03A4BgmITq5JLGTnTx0fNdljoZzhGAaVg/YJZMnUKzYM9Fp0DhLq+rmGeeGuu0R40F0yyAlN5PbroDOBcqMe37l5zGNjCWvr2K0LeruHILU2J0SQaj/KMpKzfjMBEHv4h+8CiA==; 31:amlVfN9CIYMYlCddm6e+aD21pf06ftGLdNQpQuknXu0GNq/a9Id1g38wI8YjP3HEMEehIc5f0BAUfmrzYBWAup1MusvlCuzD5FADAT6FuuYY2Ov7lNLtUf1QB0AlM+UKzbxRPEt/EzTpksyQ819peaxQ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-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)(10201501046)(3231254)(944501410)(52105095)(93006095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(376002)(346002)(366004)(199004)(189003)(446003)(956004)(2616005)(305945005)(6666003)(47776003)(476003)(54906003)(44832011)(53936002)(68736007)(486006)(110136005)(8936002)(8676002)(81156014)(16586007)(316002)(81166006)(25786009)(4326008)(7736002)(6116002)(3846002)(11346002)(97736004)(36756003)(106356001)(478600001)(105586002)(42882007)(52116002)(51416003)(26005)(16526019)(186003)(50226002)(66066001)(72206003)(6486002)(2906002)(55236004)(50466002)(6512007)(386003)(6506007)(5660300001)(76176011)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; 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; BN7PR07MB4898; 23:OzCJbr0KCKLkKN5iWIbs/ZI9RYzRTVQ9gF0r8tUUH?= =?us-ascii?Q?cFmToZn8t7mL4+SPh3LZrnhAY7m+F8dieu0sJ/dq+QydRYw+yMYUpF3kDn4u?= =?us-ascii?Q?oDWcZSapOxzkqkspVoxXT4BtC08oAL2oE5JODdYFkHk7obh5Fs57qVzrG266?= =?us-ascii?Q?4cEdjm3RtQJ8Cs0t9cu6ztPLe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0MQdbCzxm07QeNtr53w6pkhmxXdbiro097L7YFjY9rozN45We8dHjlUi/NDVsuktqaAQtum28zCsvisFij3RvSwtTdg4KZp2FJU2kZROK3TR08D4sxE=; 24:DEP74XN2udYTdc2geOWn8krJldeLR6gVqNec7Z4bnBqvXXmfr0sS7kU+dUVwT20M20pT1Sc5dsTKEL2dcDR5BmRdhvJEr4o0Z01O3ijNnK0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:aqs5jO/DIZmh97CM7EBRXYDZw0gzUvQtWLXlYv0gYWAgLImg5R2/RtXj1yvucKRuLyIIy1UCWZcKCBbk0MXVHMjdew9ORcXX0CNyNxSXjjrXg5OKcuFTQcs3Wu1xc8B68oKN6hmyrgGBtpyPI8HuA0vuQ6l2DqIcKboGWgHhZ6qQQMCYICjuuGJL8/8CMj83cMcTAJEb70+JMThWTBTkDFb+EMJAOBWK/qfxaVqG0E7DxjNLRtjt9C8E1o1f8U6z X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 11:50:30.0986 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5684f88a-b58a-40e0-6ae7-08d5d1ed083b 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 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 11:50:33 -0000 Fixed alignment and split the usage print to aid easy addition of eventmode usage prints. Signed-off-by: Anoob Joseph --- 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