netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] ethtool: remove XCVR_DUMMY entries
@ 2020-03-22 13:14 Heiner Kallweit
  2020-03-22 14:08 ` Andrew Lunn
  2020-03-24  4:37 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Heiner Kallweit @ 2020-03-22 13:14 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, David Miller; +Cc: netdev@vger.kernel.org

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
 
 /* Enable or disable autonegotiation. */
 #define AUTONEG_DISABLE		0x00
-- 
2.25.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ethtool: remove XCVR_DUMMY entries
  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
  2020-03-24  4:37 ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2020-03-22 14:08 UTC (permalink / raw)
  To: Heiner Kallweit; +Cc: Florian Fainelli, David Miller, netdev@vger.kernel.org

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

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?

A quick search found:

http://www.infradead.org/~tgr/libnl/doc/api/ethtool_8c_source.html

	Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ethtool: remove XCVR_DUMMY entries
  2020-03-22 14:08 ` Andrew Lunn
@ 2020-03-22 14:45   ` Heiner Kallweit
  2020-03-22 15:48     ` Michal Kubecek
  0 siblings, 1 reply; 5+ messages in thread
From: Heiner Kallweit @ 2020-03-22 14:45 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Florian Fainelli, David Miller, netdev@vger.kernel.org

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ethtool: remove XCVR_DUMMY entries
  2020-03-22 14:45   ` Heiner Kallweit
@ 2020-03-22 15:48     ` Michal Kubecek
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Kubecek @ 2020-03-22 15:48 UTC (permalink / raw)
  To: netdev; +Cc: Heiner Kallweit, Andrew Lunn, Florian Fainelli, David Miller

On Sun, Mar 22, 2020 at 03:45:22PM +0100, Heiner Kallweit wrote:
> On 22.03.2020 15:08, Andrew Lunn wrote:
> > 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.

I doubt it was ever part of the official libnl tree - and it certainly
never was in master branch of libnl git. It rather looks as part of an
old attempt at a netlink interface for ethtool (2010 or 2011, according
to the file banner).

Michal

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ethtool: remove XCVR_DUMMY entries
  2020-03-22 13:14 [PATCH net-next] ethtool: remove XCVR_DUMMY entries Heiner Kallweit
  2020-03-22 14:08 ` Andrew Lunn
@ 2020-03-24  4:37 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2020-03-24  4:37 UTC (permalink / raw)
  To: hkallweit1; +Cc: andrew, f.fainelli, netdev

From: Heiner Kallweit <hkallweit1@gmail.com>
Date: Sun, 22 Mar 2020 14:14:20 +0100

> The transceiver dummy entries are not used any longer, so remove them.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

As this is UAPI we can't do this, as others have said.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-24  4:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-03-22 15:48     ` Michal Kubecek
2020-03-24  4:37 ` David Miller

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).