DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Stephen Hurd <stephen.hurd@broadcom.com>,
	Thomas Monjalon <thomas.monjalon@6wind.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] New driver (large patch) question.
Date: Wed, 2 Mar 2016 22:12:08 +0000	[thread overview]
Message-ID: <BD9023A8-6A89-4ED5-857D-39E12501405B@intel.com> (raw)
In-Reply-To: <CAJ9nmBbvmmO_ajjqCSjGnRMGVd_GDB_MGwUcSKeRYsgg7cheng@mail.gmail.com>

>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.
>
>The driver itself doesn't have a lot of optional features in it, it's the
>header file that's too big.

The new files and driver code do these files really need to be in a patch format? Now the changes to current DPDK files must be a patch. If we can figure out how to tar up and then just add those files with a good comment would that be OK?

Regards
Keith
>
>On Wed, Mar 2, 2016 at 1:54 PM, Thomas Monjalon <thomas.monjalon@6wind.com>
>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
>>
>
>
>
>-- 
>Stephen Hurd
>Principal Engineer - Software Development
>Broadcom Corporation
>949-926-8039
>stephen.hurd@broadcom.com
>


Regards,
Keith





  reply	other threads:[~2016-03-02 22:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJ9nmBaWh8WsuzQcAfrebjaFNYSGsGxEd5Y5DQfWTPuxYY8XWQ@mail.gmail.com>
2016-03-02 10:21 ` Thomas Monjalon
2016-03-02 16:24   ` Stephen Hemminger
2016-03-02 21:30     ` Stephen Hurd
2016-03-02 21:54       ` Thomas Monjalon
2016-03-02 22:06         ` Stephen Hurd
2016-03-02 22:12           ` Wiles, Keith [this message]
2016-03-02 22:15           ` Thomas Monjalon
2016-03-02 23:10             ` Stephen Hurd
2016-03-03  0:29               ` Thomas Monjalon
2016-03-03  1:04                 ` Stephen Hurd
2016-03-03  5:53               ` Qiu, Michael
2016-03-03 19:40                 ` Stephen Hurd
2016-03-02 23:07       ` Vincent JARDIN
2016-03-02 23:43         ` Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BD9023A8-6A89-4ED5-857D-39E12501405B@intel.com \
    --to=keith.wiles@intel.com \
    --cc=dev@dpdk.org \
    --cc=stephen.hurd@broadcom.com \
    --cc=thomas.monjalon@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).