Message ID | 1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A4A9544C3; Mon, 8 Oct 2018 12:42:16 +0200 (CEST) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0069.outbound.protection.outlook.com [104.47.32.69]) by dpdk.org (Postfix) with ESMTP id 7EE8037B4 for <dev@dpdk.org>; Mon, 8 Oct 2018 12:42:15 +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=PwcamlE/ewOv8bzIOwZ3LvgbdfJ56GasTv9ch28r6bM=; b=oRRlM41jlmT35CCnOKj7To/aJtRntDJVT/61rTxTBnv2bPL+uND+oLRNTtZ9Usgnb3trYteBe7puPi6FZqILrimNDFaGo4PJWBwYJxXZZegKs9+Y9MmStVEa+sW1/Rm21gYpp+4sUd70Ssm3LKlzfuh1kD0IZnN3N0lwvCHckvU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by DM6PR07MB4908.namprd07.prod.outlook.com (2603:10b6:5:a3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Mon, 8 Oct 2018 10:42:10 +0000 From: Anoob Joseph <anoob.joseph@caviumnetworks.com> To: Bruce Richardson <bruce.richardson@intel.com>, Pablo de Lara <pablo.de.lara.guarch@intel.com> Cc: Anoob Joseph <anoob.joseph@caviumnetworks.com>, Jerin Jacob <jerin.jacob@caviumnetworks.com>, Narayana Prasad <narayanaprasad.athreya@caviumnetworks.com>, dev@dpdk.org Date: Mon, 8 Oct 2018 16:11:17 +0530 Message-Id: <1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) To DM6PR07MB4908.namprd07.prod.outlook.com (2603:10b6:5:a3::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a451ab22-b5f4-4329-b766-08d62d0ab527 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4908; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 3:yf4MpHGzt63Dg1af62YIl1uDg5yWhM9baAbiypndzGadlmTrDaakQWJZk8ZrZZtIVbHX/NpXiB0EbqVgnuxaQ9qlQYVi74gnL+Ol2X2bUCXOtw9xrNz6p8hC+MfW5bNBIPuS6FXjYJsGIsyAP7Cz8xusGuiUWYAWl1OBnxFbnW9ltQxIHKxwakvfC+nJGMLJxk2WmufO1cf9TJTa2R4T+gRNsnd1BQfJagniLBuvL12X6VAOftfshWguOBz8eitY; 25:Yh4RepIZGC4XhiKV9XDA0IjHj0uzbfplc2dUUIvoxS2e2nsn+TnHKGUZuENNePrySrwhxgmvWwOhjFO3PhvXbeNYPF8H1QFfGpMvKyCx7pLQwkfnmxbMJrmq1Esag0XNFIEMRnap/vDq3hMKiv26qjQXfx16b3S9zQcwsbFyvE6sODZgBb/nug8f5qDHOMKsaHZjW5FGU2Y6vxcd+CqRmLqjSNRAsHrEslbG9A9Hy7ZWWriVuTbB9dkGdp5CTlJpXD2bb4CNKrSY4HKoXWzRqzDk9BpYbePYfhmvztgWsDjbanfHZOJSFR+Jp9K2i173cWJ7RJQ/3kN8Gz+u5rJecQ==; 31:Fdd1JFrROYnjQxDiw52uylkiT/rHsQrbYffPsmZZKKSulZRCtbQIPTNHA7zzNId6o3qrknGOFTpFhye1SHbnDR5Bw6D/ndSaFbpv1CUhqWmfz37i4P9R5biyxA6wEhgJWoGErMnS4gP8GTc/s28nfDsiEOaabFVrmiTlKgj4WceqHe2wQrozlcDjp5ob0DASH+lm3XYnoMMid68+yB6bI3PdeKhHSpkVPDek2vQC+VI= X-MS-TrafficTypeDiagnostic: DM6PR07MB4908: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 20:b5CJfwk4q32HbmBxBy6Z0k6UMXPNx6wC0Q5XuWQxc8WUQ2rTCMei0qOHPtEXwb1OXvWy0suIBlSfvgn8/j+6bmEYqAMNCaJ/M26m0wxhvf/K5N8qy5m0Za6aoDytqO3mPJtHRwWcAgNjTvKIfdKKRzrInIi+CvKNiT6mxQIjCqxyUzs6i9Z00tW+3RsRUPrjIkXdWxh4kAeMeNf+TKKRYzgwK1QM0fUBbUgOLWUdjdyQRI09zWic9KQDjeaqywb7V0tuQkxRB5nJgPI/8bGnfbz3LE2HlTu2CZlSsIGEDpVZKMNt67tuLfH45BbOjLKwSFpBb3sVTV0tdWKrvbOjnjmT4otxjsuSNAlFjoFwvdQdbSrtAXROMvhX+rgA32Yx8fX4pG0umfGOgLd7hs9pzZlfD2UK++yD029Yno3VPyC/G/Rjfw08oP+g2QZvO2Mlz2Qfi7mHGQ1lLVACCPXc8xXFERwhnDzgjMWCWxJACvzE4vjln9QbzaGOu3uXBeyGvgxd7HYhCsa/lHR3X5HlZKBEcCsn2LPqj6VHYDWVkfTFaV9Pw7/QXt9hrXcGNMUxmhxYIcvgtroqiyUJrlNUMq8jIo0CC9gwmGxh+XjLxM4= X-Microsoft-Antispam-PRVS: <DM6PR07MB4908BE78281D88E706F8D74DF8E60@DM6PR07MB4908.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(131327999870524); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:DM6PR07MB4908; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4908; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 4:TwjdbnsYsu3lQ1ZD+g9eE7vVE29jrLKgAMgSCxRnh5+T45MZyc0p/GDNlYdmf/iSozgUgTBkzPsQwRDb2SBSSQc2lZ9e2CHZHS4kMhUFM1fD1oJY6lsthj0LvT5B7UXqRkbY5mPkPOSAWF0tmGUX4pP5XVg7yO+b7n57E1eOHyULxW8YkkzLcz/pXY+/KdG0QFlK0v30zzzO5c6yRh9wauUbHJSKhEWMTCUTMFhp+RIUtGqdhS3AlJLLqfe9RFWnxvMPkAZAgiEzXDYE2ceeniRZ0Kuys/A0Z2voIRzvrpoeRfb5dZ4gQW7RWkFLqaUry0lreqrsDvZNNrHsJLIl/JmFf020XaiQBmFE4AvJ+5g= X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(376002)(39860400002)(346002)(199004)(189003)(47776003)(316002)(14444005)(6506007)(386003)(16586007)(106356001)(105586002)(72206003)(2906002)(55236004)(7736002)(6486002)(68736007)(305945005)(66066001)(6512007)(53936002)(81156014)(48376002)(8936002)(50226002)(3846002)(36756003)(50466002)(97736004)(25786009)(6116002)(486006)(478600001)(476003)(42882007)(54906003)(186003)(44832011)(110136005)(5660300001)(4326008)(16526019)(81166006)(51416003)(2616005)(26005)(8676002)(52116002)(956004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4908; H:ajoseph83.caveonetworks.com.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; DM6PR07MB4908; 23:c8lTSH0tRH7/bsr5wNThW2oJ1RcXIGZQR8RC8CR3h?= P2s2bUA78EOfknhacEq7ix1NrIvIhln1sIbNwDameaKwmcXNxB3CYsz5JdL6ZSgjxDazO9cTxQFVLTZsCAxg53l+pDJIdrnKx2FjeqSyZKd4u8rE/4sxDHIFJUuhaMgZHud34rSVVjb/l/YtUFEndR2SpU3/MMi+ppotPy3mCjatm5w0jmVF9qjKjehBIai1KGgAuc/fYOO5xEkBYgVsO2z8OGigbIac4T78e8L/t2ImvCvRnxj4t+aODAeZO3wj/0jZ/VrsM0OFVxXZ45iFE2UWHWJMaK1jt+hOIgHjdug1vzdpAUnHNQq038q0i4/efjv6sym9d11iBB/3NywTBq1Ue70NGlGjm0sAgWuQDDSUlnziCSpf0HuBQrsKq7rnL/zZn6O4/WSPqdati9roI4cKLU5SAuh4yhrsrG+2oegf5UbsmVfrjP3IfgQ9+vDaK3FAu/wLMIIMNRm+r4N1N3Yvd92X/d3ewxtJbhEtoNBH3yfBET4a6VJT/T1QUW3N6Y9afYsDPbXYPYJC5HhRwAvE3PEkSK7arupcd5qHAnR7lpFF+k9x3JE/5D9hTjjaTYHezRe6WV9h2TI+ZAdoakeZr4WdgsvNcFhlMFIqUCI3xuU9nOx37xCgg7T4wXYIa6n1RmDI0YTADgIMPG6syEw9GjpLwcyQeMQdPIkVgV6Wci7fqA0C7LShWVQRh/tBNJKtVwVGCjMNFLmyFE5L68etRGvSy5EE0eRRqWV8gc+ZfRlvrtC+pJFW28zPiXHkk2+hxt2kKbOuWs4fSxccmvkkZB2B5HAEBpEqh92P/qRnCkiol8PxHafcL9WtW9BeY4CSbg7a6GrvQuIS+oErT2Qmqtd3FnuHVhrUCCDuC5HjRSnBzwqBYM3Ui5/Go8yXsPbz0DB0hcj/7Bd1NsniNgUIUguYGtbPwFuv+KYzJkGxpo8E3UN3HcT/NAkUOLYE3RBWkZdwuFNmodr2UAxp9boa+h4LW1CBp+qftWguNjba5Opsbg4w5F6j67KxDzShPUx5bK5+QA9TX2GgHnjWlV2C/Rnyf6BxL74PAdUM4FxVhTGDhI2qcS5gP4hAFHcvGkVHJaHD1s6ToRW2UuRAoMXe0ILNr2l8smh9UINPDEptbZfO/2eKHVtMxE6xnSXw8itxESgeoVXO4BD7YR87MME X-Microsoft-Antispam-Message-Info: vIFiCQhFOQQXaWObGFH8vUUbxanVvZezjq20YhQ0p1WbVXRXQLXJJTJQh1ZYpwdfMG5oXVx4utC31KXY9cME+ucxhJ00LQZn4Wvf8iSbs3YofsY88IJNe3hchm9+4wtG7IGeTirNk6OgY2XFEMph1viQ9CCfOnlkyu6rPvoAIMzggyFrClTdK0XdRfIDGK+l9ZCiQZtr7G9CKRlZpk647GsB+G6DleMpIdOcoXjv5rzRh8DL4cryorJDesmBBHzP2k1jNNK3AkMNI8ZAxDoCGJlaIxCcS+XTxLjxc+KZ/GcEkf1KDCDdL/ppZAeKnnlMs2Xz0zpvG0gS49rRWoIsLjvmInhfwHtLNX/u45ghvn0= X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 6:tTz1hzwh2Fx3inB1EXL85zoQpr7kdk+6cKl3T17dVkEmf4RxIjqwyJQOtdlfGuhdSDiacJuaBl5ThWCecUTd1rYqR2li7CpRj6RlnsOJvBEhJwL8Bk/zUSU7Ijv0TuTxist9CZIPl5gadmVM8qXB2Suv+86JPfvbGoySJFZfJiYsflN9wtQoYUEgrxrNro9W85f/fMBnbKgrbNf48zf9umZ9mvHXrwkYbe4+pa2UirBeDFvkC1BLOSXYHKkZGYXGgyHj7PrI5IdkfknKVm/bthgtxUgZmyV5ruiXJX3bowaksoBxvI5WTma/6kMzi/3IN57l8zG/RzaUmdxs+Fu9AmsL5XC/R6YWnrqncbC09nGej2K0k1L3QrvVs1cGZEQdc47yuEAscRcnAgXJN4vw8OVwnjc7C2k+K/C76BJTx2HPVVE+yh636D55OMZNRYDIej6eoi9yjQO75gqMW0J6Kg==; 5:j19QWTNTrbKQEpOhvNZhMjF3PIDYW5ebZnuqojJZCUuE+12OS4XiY6fxyEkb7IKjPHFFeboCqSIGEDyBR3Zh2er75/fGJLhgPakuPoGTkJNDGyYUTtkEGnJ31YoEyrXFm9r2yNgVclItk+EDEvXgh09PQMwbCqiZl7iFYlleIV8=; 7:lqJJgbi5TLM8vkkqxsTvCW601qURXkygNiMwMZxY6/5FXxZ8sfmsQioGghRgLRbP3tXeZEL1b2TPBqS3xEm77ijf3u47WCPPBG6apXGyfA3TzBhj/kG5HflGpHcYDOodSqDVi3PR/bKxMB/kXU3fFyOOgeq3j0hfDgm0Yi4/So+6Vmb4VQ/k3Ui5UUVOZg0CywiDZLANgRRqCiOraN0KQjfZs/WjGoidaeRGN7cZzxoVvS93O5PKwVl202J+2C5j SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 10:42:10.8839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a451ab22-b5f4-4329-b766-08d62d0ab527 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4908 Subject: [dpdk-dev] [PATCH 0/8] examples/l2fwd: fix checkpatch reported issues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
examples/l2fwd: fix checkpatch reported issues
|
|
Message
Anoob Joseph
Oct. 8, 2018, 10:41 a.m. UTC
This patchset fixes multiple issues reported by checkpatch in l2fwd code base. These issues would be flagged for any new copy of the file and hence, fixing at the source. Anoob Joseph (8): examples/l2fwd: remove quoted white space before newline examples/l2fwd: need space between two args examples/l2fwd: else should follow close brace examples/l2fwd: replace bare usage of 'unsigned' examples/l2fwd: follow convention for block comments examples/l2fwd: limit line to 80 char examples/l2fwd: space required between elements examples/l2fwd: remove null initialisation examples/l2fwd/main.c | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-)
Comments
On 10/8/2018 11:41 AM, Anoob Joseph wrote: > This patchset fixes multiple issues reported by checkpatch in l2fwd > code base. These issues would be flagged for any new copy of the file > and hence, fixing at the source. > > Anoob Joseph (8): > examples/l2fwd: remove quoted white space before newline > examples/l2fwd: need space between two args > examples/l2fwd: else should follow close brace > examples/l2fwd: replace bare usage of 'unsigned' > examples/l2fwd: follow convention for block comments > examples/l2fwd: limit line to 80 char > examples/l2fwd: space required between elements > examples/l2fwd: remove null initialisation Hi Anoob, I am not sure if it is good idea to get syntax only fixes, I would prefer to get syntax fixes when some other code touches that area. Thanks, ferruh
Hi Ferruh, On 08-10-2018 16:30, Ferruh Yigit wrote: > External Email > > On 10/8/2018 11:41 AM, Anoob Joseph wrote: >> This patchset fixes multiple issues reported by checkpatch in l2fwd >> code base. These issues would be flagged for any new copy of the file >> and hence, fixing at the source. >> >> Anoob Joseph (8): >> examples/l2fwd: remove quoted white space before newline >> examples/l2fwd: need space between two args >> examples/l2fwd: else should follow close brace >> examples/l2fwd: replace bare usage of 'unsigned' >> examples/l2fwd: follow convention for block comments >> examples/l2fwd: limit line to 80 char >> examples/l2fwd: space required between elements >> examples/l2fwd: remove null initialisation > Hi Anoob, > > I am not sure if it is good idea to get syntax only fixes, I would prefer to get > syntax fixes when some other code touches that area. I'm preparing a new copy of l2fwd with support for eventmode(as suggested in, https://mails.dpdk.org/archives/dev/2018-August/109717.html). All these issues were flagged when I did the copy. What would be the better approach in that case? Fix it in just the new application or fix the source? Fixing in just the new app would mean, the two versions will have a diff at the time of copy. And next time someone touches these lines, the same problem would be there. Thanks, Anoob
On 10/8/2018 12:29 PM, Joseph, Anoob wrote: > Hi Ferruh, > > On 08-10-2018 16:30, Ferruh Yigit wrote: >> External Email >> >> On 10/8/2018 11:41 AM, Anoob Joseph wrote: >>> This patchset fixes multiple issues reported by checkpatch in l2fwd >>> code base. These issues would be flagged for any new copy of the file >>> and hence, fixing at the source. >>> >>> Anoob Joseph (8): >>> examples/l2fwd: remove quoted white space before newline >>> examples/l2fwd: need space between two args >>> examples/l2fwd: else should follow close brace >>> examples/l2fwd: replace bare usage of 'unsigned' >>> examples/l2fwd: follow convention for block comments >>> examples/l2fwd: limit line to 80 char >>> examples/l2fwd: space required between elements >>> examples/l2fwd: remove null initialisation >> Hi Anoob, >> >> I am not sure if it is good idea to get syntax only fixes, I would prefer to get >> syntax fixes when some other code touches that area. > I'm preparing a new copy of l2fwd with support for eventmode(as > suggested in, > https://mails.dpdk.org/archives/dev/2018-August/109717.html). All these > issues were flagged when I did the copy. What would be the better > approach in that case? Fix it in just the new application or fix the > source? Fixing in just the new app would mean, the two versions will > have a diff at the time of copy. I see, make sense to not create syntax diff copied and original versions, I missed the new copy part. So OK for this patch.
08/10/2018 14:35, Ferruh Yigit: > On 10/8/2018 12:29 PM, Joseph, Anoob wrote: > > On 08-10-2018 16:30, Ferruh Yigit wrote: > >> On 10/8/2018 11:41 AM, Anoob Joseph wrote: > >>> This patchset fixes multiple issues reported by checkpatch in l2fwd > >>> code base. These issues would be flagged for any new copy of the file > >>> and hence, fixing at the source. > >>> > >>> Anoob Joseph (8): > >>> examples/l2fwd: remove quoted white space before newline > >>> examples/l2fwd: need space between two args > >>> examples/l2fwd: else should follow close brace > >>> examples/l2fwd: replace bare usage of 'unsigned' > >>> examples/l2fwd: follow convention for block comments > >>> examples/l2fwd: limit line to 80 char > >>> examples/l2fwd: space required between elements > >>> examples/l2fwd: remove null initialisation > >> Hi Anoob, > >> > >> I am not sure if it is good idea to get syntax only fixes, I would prefer to get > >> syntax fixes when some other code touches that area. > > I'm preparing a new copy of l2fwd with support for eventmode(as > > suggested in, > > https://mails.dpdk.org/archives/dev/2018-August/109717.html). All these > > issues were flagged when I did the copy. What would be the better > > approach in that case? Fix it in just the new application or fix the > > source? Fixing in just the new app would mean, the two versions will > > have a diff at the time of copy. > > I see, make sense to not create syntax diff copied and original versions, I > missed the new copy part. So OK for this patch. It was said that there will be not so much common code. So why bothering to reformat the original example? Anyway, if such cleanup is worth before duplicating, please insert it in the same patchset as the new example.
Hi Thomas, > -----Original Message----- > From: Thomas Monjalon <thomas@monjalon.net> > Sent: 29 October 2018 07:49 > To: Joseph, Anoob <Anoob.Joseph@cavium.com> > Cc: dev@dpdk.org; Ferruh Yigit <ferruh.yigit@intel.com>; Bruce Richardson > <bruce.richardson@intel.com>; Pablo de Lara > <pablo.de.lara.guarch@intel.com>; Jacob, Jerin > <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad > <NarayanaPrasad.Athreya@cavium.com> > Subject: Re: [dpdk-dev] [PATCH 0/8] examples/l2fwd: fix checkpatch reported > issues > > External Email > > 08/10/2018 14:35, Ferruh Yigit: > > On 10/8/2018 12:29 PM, Joseph, Anoob wrote: > > > On 08-10-2018 16:30, Ferruh Yigit wrote: > > >> On 10/8/2018 11:41 AM, Anoob Joseph wrote: > > >>> This patchset fixes multiple issues reported by checkpatch in > > >>> l2fwd code base. These issues would be flagged for any new copy of > > >>> the file and hence, fixing at the source. > > >>> > > >>> Anoob Joseph (8): > > >>> examples/l2fwd: remove quoted white space before newline > > >>> examples/l2fwd: need space between two args > > >>> examples/l2fwd: else should follow close brace > > >>> examples/l2fwd: replace bare usage of 'unsigned' > > >>> examples/l2fwd: follow convention for block comments > > >>> examples/l2fwd: limit line to 80 char > > >>> examples/l2fwd: space required between elements > > >>> examples/l2fwd: remove null initialisation > > >> Hi Anoob, > > >> > > >> I am not sure if it is good idea to get syntax only fixes, I would > > >> prefer to get syntax fixes when some other code touches that area. > > > I'm preparing a new copy of l2fwd with support for eventmode(as > > > suggested in, > > > https://mails.dpdk.org/archives/dev/2018-August/109717.html). All > > > these issues were flagged when I did the copy. What would be the > > > better approach in that case? Fix it in just the new application or > > > fix the source? Fixing in just the new app would mean, the two > > > versions will have a diff at the time of copy. > > > > I see, make sense to not create syntax diff copied and original > > versions, I missed the new copy part. So OK for this patch. > > It was said that there will be not so much common code. > So why bothering to reformat the original example? There will be common code. In fact most of the code could actually be shared. But we are creating a copy and starting from there because Bruce didn't want any changes in the existing app. > Anyway, if such cleanup is worth before duplicating, please insert it in the same > patchset as the new example. These fixes will be there in the new app. I'll add this in the patchset when I share the new app. Thanks, Anoob