From: Heiner Kallweit <hkallweit1@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
David Miller <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next] ethtool: remove XCVR_DUMMY entries
Date: Sun, 22 Mar 2020 15:45:22 +0100 [thread overview]
Message-ID: <731810bd-7e8f-8e34-304a-52e0f1286ba0@gmail.com> (raw)
In-Reply-To: <20200322140837.GG11481@lunn.ch>
On 22.03.2020 15:08, Andrew Lunn wrote:
> On Sun, Mar 22, 2020 at 02:14:20PM +0100, Heiner Kallweit wrote:
>> The transceiver dummy entries are not used any longer, so remove them.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> ---
>> include/uapi/linux/ethtool.h | 3 ---
>> 1 file changed, 3 deletions(-)
>>
>> diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
>> index d586ee5e1..77721ea36 100644
>> --- a/include/uapi/linux/ethtool.h
>> +++ b/include/uapi/linux/ethtool.h
>> @@ -1673,9 +1673,6 @@ static inline int ethtool_validate_duplex(__u8 duplex)
>> /* Which transceiver to use. */
>> #define XCVR_INTERNAL 0x00 /* PHY and MAC are in the same package */
>> #define XCVR_EXTERNAL 0x01 /* PHY and MAC are in different packages */
>> -#define XCVR_DUMMY1 0x02
>> -#define XCVR_DUMMY2 0x03
>> -#define XCVR_DUMMY3 0x04
>
> Hi Heiner
>
Hi Andrew
> We need to be careful here. This is a UAPI header. The kernel might
> not use them, but is there any user space code using them?
>
Right. I checked ethtool and it doesn't use the dummy values.
Wherever I checked only the internal/external values are used.
In kernel last usage of the dummy values was removed 2yrs ago,
see e.g. here: https://lore.kernel.org/patchwork/patch/767218/
> A quick search found:
>
> http://www.infradead.org/~tgr/libnl/doc/api/ethtool_8c_source.html
>
I checked here http://git.infradead.org/users/tgr/libnl.git and there
hasn't been such an ethtool.c file for ages.
> Andrew
>
Heiner
next prev parent reply other threads:[~2020-03-22 14:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-22 13:14 [PATCH net-next] ethtool: remove XCVR_DUMMY entries Heiner Kallweit
2020-03-22 14:08 ` Andrew Lunn
2020-03-22 14:45 ` Heiner Kallweit [this message]
2020-03-22 15:48 ` Michal Kubecek
2020-03-24 4:37 ` David Miller
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=731810bd-7e8f-8e34-304a-52e0f1286ba0@gmail.com \
--to=hkallweit1@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
/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).