Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932828AbbHJTzk (ORCPT ); Mon, 10 Aug 2015 15:55:40 -0400 Received: from mail-bn1bon0113.outbound.protection.outlook.com ([157.56.111.113]:63952 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932518AbbHJTzh convert rfc822-to-8bit (ORCPT ); Mon, 10 Aug 2015 15:55:37 -0400 From: Liberman Igal To: David Miller CC: "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Scott Wood , Madalin-Cristian Bucur , "pebolle@tiscali.nl" , "joakim.tjernlund@transmode.se" , "ppc@mindchasers.com" , "stephen@networkplumber.org" Subject: RE: [v4, 0/9] Freescale DPAA FMan Thread-Topic: [v4, 0/9] Freescale DPAA FMan Thread-Index: AQHQz4K2N4f5hG12tky/iv57op9EA54BInUAgASKggA= Date: Mon, 10 Aug 2015 19:55:32 +0000 Message-ID: References: <1438766725-8053-1-git-send-email-igal.liberman@freescale.com> <20150807.153102.533553009548852567.davem@davemloft.net> In-Reply-To: <20150807.153102.533553009548852567.davem@davemloft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Igal.Liberman@freescale.com; x-originating-ip: [192.88.162.1] x-microsoft-exchange-diagnostics: 1;DM2PR03MB559;5:ZFdeO8A7onbF6425zMZH62357MLkPxJdaUwgFHlY2FoqBiA132B2m8AVeclsU2qbHNHlU4uyIBxiJTAJPCqoFJ5qo/Sj9RCSxrB7Gqzp6GFMGEQ1yYz5aJ1Xrx5F53EovlwffB5yQ161tcyO36fM5Q==;24:NCWVlPFk2rHYfBtv/Hf0sl+zaJY7wJUrGYkek+VgWgBgN8p/cVEzXCaAX0Jni0v7IFzjbAANKZAAE1Ha1gpGR6DTZgxZf2f7vIwyZocIAAo=;20:qeXYPLP2mNKMJu8u9bBCdPTkffx5S218yRtP1ev9yiCS+oTdBYe5Z/rxldHLLFAD1feIdEr3u9auUXW/oMc0Sg== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB559; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DM2PR03MB559;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB559; x-forefront-prvs: 06640999CA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(13464003)(199003)(189002)(101416001)(2900100001)(33656002)(68736005)(77156002)(92566002)(74316001)(5001960100002)(62966003)(102836002)(77096005)(76576001)(5003600100002)(10400500002)(2950100001)(110136002)(122556002)(86362001)(5001830100001)(64706001)(99286002)(87936001)(2656002)(97736004)(106116001)(106356001)(81156007)(5001860100001)(5002640100001)(105586002)(19580405001)(54356999)(19580395003)(66066001)(50986999)(4001540100001)(76176999)(189998001)(46102003)(40100003)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR03MB559;H:DM2PR03MB509.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2015 19:55:32.7463 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB559 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3685 Lines: 91 Hello David, Thank you for your feedback. I understand your concerns regarding the FMan driver, we've come a long way from where we started but still there are issues. The community support is critical for getting the code to the desired quality level and I appreciate the support I receive from you and from the other previous reviewers. In order to reduce the code scattering I plan to put together all the code for a certain IP block in one file. For example FMan port in his current state in /drivers/net/freescale/fman/: flib (directory) ---- fsl_fman_port.h inc (directory) ---- fm_port_ext.h (API for other drivers/modules) port (directory) ---- fman_port.c (flib) ---- fm_port.c ---- fm_port.h ---- Makefile fm_port_drv.c (file) New proposed structure in /drivers/net/freescale/fman/: fman_port_drv.c (includes simplified code from fm_port.c, fman_port.c and fm_port_drv.c) fman_port_drv.h (exported structures and API, minimal) Of-course, I'll do the same for other modules (MAC, FMan itself). After this structure change we get: - Subdirectories completely removed - Layering reduced, each module becomes much flatter, with one source and header file - Fewer number of files (sources and headers) - Namespace pollution drastically reduced - General complexity of the driver reduced. I would appreciate your comments about the steps described above. Regards, Igal > -----Original Message----- > From: David Miller [mailto:davem@davemloft.net] > Sent: Saturday, August 08, 2015 1:31 AM > To: Liberman Igal-B31950 > Cc: netdev@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > kernel@vger.kernel.org; Wood Scott-B07421 ; > Bucur Madalin-Cristian-B32716 ; > pebolle@tiscali.nl; joakim.tjernlund@transmode.se; ppc@mindchasers.com; > stephen@networkplumber.org > Subject: Re: [v4, 0/9] Freescale DPAA FMan > > From: > Date: Wed, 5 Aug 2015 12:25:16 +0300 > > > The Freescale Data Path Acceleration Architecture (DPAA) is a set of > > hardware components on specific QorIQ multicore processors. > > This architecture provides the infrastructure to support simplified > > sharing of networking interfaces and accelerators by multiple CPU > > cores and the accelerators. > > I think the directory and code structure of this new driver is quite excessive. > > Because you've split things up _so_ much, you have to have all of these > directories, and even worse and much more important to me you have to > export so many functions from one source file to another. > > I think this is way too much. > > For example, in one file you have a bunch of initialization routines. > init_a(), init_b(), init_c(), and you export them all. Then they are always > called in sequence: > > init_a(); > init_b(); > init_c(); > > This is completely pointless. You just needed to export one function which > calls all three functions. > > The namespace pollution of this driver is out of control. > > You really need to completely rework the architecture and layout of this > driver before I will even begin to review it again. > > And the lack of review interest by other developers should be an indication > to you how undesirable this code submission is to read. > > Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/