[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGVrzcbb-7sQqHyf8SS8-mUyD+LM==Z6r3Zy1rFQ72WHFveMcQ@mail.gmail.com>
Date: Thu, 20 Feb 2014 11:00:06 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Casey Leedom <leedom@...lsio.com>
Cc: Steve Wise <swise@...ngridcomputing.com>,
Hariprasad Shenai <hariprasad@...lsio.com>,
netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>, dm@...lsio.com,
nirranjan@...lsio.com, kumaras@...lsio.com, santosh@...lsio.com
Subject: Re: [PATCH net-next 1/8] cxgb4: Add support to recognize 40G links
2014-02-20 10:07 GMT-08:00 Casey Leedom <leedom@...lsio.com>:
>
> On 02/19/14 13:12, Steve Wise wrote:
>>
>>
>> You probably should add SPEED_40000 to include/uapi/linux/ethtool.h as
>> part of this series.
>
>
> I'm ~pretty sure~ that the "word on the street" was that the community
> wanted to get away from the SPEED_XXX symbols since they simply represented
> the values XXX. Thus they didn't offer any real symbolic isolation from
> weird constants, etc. I believe that the old SPEED_XXX values were left in
> place in order to avoid making tons of changes everywhere ...
Not quite sure where and when you heard that, it seems a little
disturbing to add a comment in this patch saying "this I how I should
fix things" and not do them, especially when this is a one-liner.
Having a well defined constant is easier to grep than having the
open-coded 40000 constant which will lead to false positives
throughout the tree.
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists