From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: New driver (large patch) question. Date: Wed, 02 Mar 2016 23:15:58 +0100 Message-ID: <3156888.xIWalfADA6@xps13> References: <1915798.D06pWLxedU@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Stephen Hurd Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 3109829D6 for ; Wed, 2 Mar 2016 23:17:34 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id p65so9137112wmp.1 for ; Wed, 02 Mar 2016 14:17:34 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-03-02 14:06, Stephen Hurd: > The issue is that the big header in question is the whole hardware/firmware > interface definition. The comments in it are the only publicly available > documentation on the hardware I'm aware of. So you must keep the comments. > The driver itself doesn't have a lot of optional features in it, it's the > header file that's too big. It is big because there are many different things. You can split the file in different patches. Examples: - a patch for RSS will bring the hardware structures for RSS - a patch for the stats will bring the hardware stats structures etc PS: please answer inline > On Wed, Mar 2, 2016 at 1:54 PM, Thomas Monjalon > wrote: > > > 2016-03-02 13:30, Stephen Hurd: > > > The bulk of the patch is the hardware interface header file. With all > > the > > > comments, it weighs in around 800k. If I strip the comments, it's around > > > 300k. If I both strip all the comments and remove all the currently > > unused > > > structures, I can get the entire patch down just below 300k, but that > > makes > > > it much harder for someone to do further development. I'm willing to do > > > that though if it's what's preferred. > > > > > > The other large file (560k) is just a bunch of extra debug output that > > > makes it easier to debug issues. It's normally not compiled, so it > > sounds > > > like it's not wanted either. > > > > If the code is not needed, it's obviously better to not submit it :) > > > > > I'll submit without comments in the hardware interface file and take it > > > from there. > > > > I don't think removing the comments is a good option. > > Please try to split per-feature to make it readable. > > You can check how fm10k was introduced as an example: > > http://thread.gmane.org/gmane.comp.networking.dpdk.devel/13447 > > or mlx5: > > http://thread.gmane.org/gmane.comp.networking.dpdk.devel/26986 > > > > > >