From: Stefan Assmann <sassmann@kpanic.de>
To: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>,
"backports@vger.kernel.org" <backports@vger.kernel.org>
Subject: Re: [PATCH 1/4] backports: replace igb skb->no_fcs patch with semantic patch
Date: Tue, 09 Jun 2015 08:46:46 +0200 [thread overview]
Message-ID: <55768BD6.1000305@kpanic.de> (raw)
In-Reply-To: <CAB=NE6UYbXqyo-O5Dj-FBTzhQ+LjRH86-fbgAQaqreVAoctQjg@mail.gmail.com>
On 09.06.2015 00:09, Luis R. Rodriguez wrote:
> On Thu, Jun 4, 2015 at 2:08 AM, Stefan Assmann <sassmann@kpanic.de> wrote:
>> On 03.06.2015 22:13, Hauke Mehrtens wrote:
>>> Is it always save to just remove something which accesses skb->no_fcs in
>>> all cases? I think sometimes some special handling for older kernel
>>> version could be needed. This also looks very specific to the igb usage.
>>
>> In this case I'd say this is fine, no_fcs is used to send out frames with
>> bad CRC for testing. So just commenting out related code shouldn't cause
>> any harm. Yes, the cocci code is very specific and will likely need to be
>> extended for other drivers when we pull them in. But you have to start
>> somewhere.
>>
>> We always have the option to revert if something turns out to be a bad
>> idea.
>
> I'm fine with merging now but please note the discussion, Hauke was
> curious about the generality over the Coccinelle patch replacement
> over a patch series. In order to help maintainers make a proper
> assessment over whether or not we can merge an SmPL patch to replace a
> patch series it is extremely useful to annotate the SmPL patch with
> header comments which track:
>
> a) The respective upstream commit and kernel version which introduced
> the collateral evolution for which you are generalizing
> b) A good description which explains your understanding as to why this
> should work and will not break run time
>
> a) is easy, b) is hard but it is the least we can do and I think we
> will remain sane if we put this as a litmus test for future SmPL patch
> replacements. Its not easy but please see my own SmPL patches and
> review the description. Its pretty lengthy but these discussions can
> be avoided if we had someone do the full homework.
>
> If we want to scale we need this. Are you folks OK with requiring a)
> and b) on future SmPL patch replacements? Best effort at least. Keep
> in mind reason for this is also I believe there are some further
> generalizations we can reach if we follow these best practices which I
> think will have further beneficial gains to us.
Adding that info to the git commit log sounds like added value. I'll try
to provide it in my next patchset. If I get you right, this is somewhat
similar to what's in the INFO files, correct?
Stefan
next prev parent reply other threads:[~2015-06-09 6:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 11:25 [PATCH 0/4] backports: more generic ethernet patches Stefan Assmann
2015-06-03 11:25 ` [PATCH 1/4] backports: replace igb skb->no_fcs patch with semantic patch Stefan Assmann
2015-06-03 20:13 ` Hauke Mehrtens
2015-06-04 9:08 ` Stefan Assmann
2015-06-08 22:09 ` Luis R. Rodriguez
2015-06-09 6:46 ` Stefan Assmann [this message]
2015-06-09 18:24 ` Luis R. Rodriguez
2015-06-09 21:46 ` Hauke Mehrtens
2015-06-09 22:12 ` Luis R. Rodriguez
2015-06-03 11:25 ` [PATCH 2/4] backports: replace igb ethtool_cmd_mdix " Stefan Assmann
2015-06-03 11:25 ` [PATCH 3/4] backports: replace igb xmit_more " Stefan Assmann
2015-06-03 11:25 ` [PATCH 4/4] backports: replace igb pfmemalloc " Stefan Assmann
2015-06-09 22:15 ` [PATCH 0/4] backports: more generic ethernet patches Luis R. Rodriguez
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=55768BD6.1000305@kpanic.de \
--to=sassmann@kpanic.de \
--cc=backports@vger.kernel.org \
--cc=hauke@hauke-m.de \
--cc=mcgrof@do-not-panic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.