* [PATCH net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum
@ 2025-04-25 17:14 Kory Maincent
2025-04-28 22:51 ` Jakub Kicinski
2025-04-28 23:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Kory Maincent @ 2025-04-25 17:14 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Maxime Chevallier, Kory Maincent, thomas.petazzoni, Andrew Lunn,
Jakub Kicinski, Donald Hunter, David S. Miller, Eric Dumazet,
Paolo Abeni, Simon Horman
The phy-upstream enum is already defined in the ethtool.h UAPI header
and used by the ethtool userspace tool. However, the ethtool spec does
not reference it, causing YNL to auto-generate a duplicate and redundant
enum.
Fix this by updating the spec to reference the existing UAPI enum
in ethtool.h.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Not sure if it should be sent as a fix as there is no real issue here.
---
Documentation/netlink/specs/ethtool.yaml | 4 +++-
include/uapi/linux/ethtool_netlink_generated.h | 5 -----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml
index 655d8d10fe24..c650cd3dcb80 100644
--- a/Documentation/netlink/specs/ethtool.yaml
+++ b/Documentation/netlink/specs/ethtool.yaml
@@ -89,8 +89,10 @@ definitions:
doc: Group of short_detected states
-
name: phy-upstream-type
- enum-name:
+ enum-name: phy-upstream
+ header: linux/ethtool.h
type: enum
+ name-prefix: phy-upstream
entries: [ mac, phy ]
-
name: tcp-data-split
diff --git a/include/uapi/linux/ethtool_netlink_generated.h b/include/uapi/linux/ethtool_netlink_generated.h
index fe24c3459ac0..30c8dad6214e 100644
--- a/include/uapi/linux/ethtool_netlink_generated.h
+++ b/include/uapi/linux/ethtool_netlink_generated.h
@@ -31,11 +31,6 @@ enum ethtool_header_flags {
ETHTOOL_FLAG_STATS = 4,
};
-enum {
- ETHTOOL_PHY_UPSTREAM_TYPE_MAC,
- ETHTOOL_PHY_UPSTREAM_TYPE_PHY,
-};
-
enum ethtool_tcp_data_split {
ETHTOOL_TCP_DATA_SPLIT_UNKNOWN,
ETHTOOL_TCP_DATA_SPLIT_DISABLED,
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum
2025-04-25 17:14 [PATCH net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum Kory Maincent
@ 2025-04-28 22:51 ` Jakub Kicinski
2025-04-28 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2025-04-28 22:51 UTC (permalink / raw)
To: Kory Maincent
Cc: netdev, linux-kernel, Maxime Chevallier, thomas.petazzoni,
Andrew Lunn, Donald Hunter, David S. Miller, Eric Dumazet,
Paolo Abeni, Simon Horman
On Fri, 25 Apr 2025 19:14:18 +0200 Kory Maincent wrote:
> The phy-upstream enum is already defined in the ethtool.h UAPI header
> and used by the ethtool userspace tool. However, the ethtool spec does
> not reference it, causing YNL to auto-generate a duplicate and redundant
> enum.
>
> Fix this by updating the spec to reference the existing UAPI enum
> in ethtool.h.
>
> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
> ---
> Not sure if it should be sent as a fix as there is no real issue here.
Indeed, but better deliver it to users ASAP otherwise some app
may start using this unnecessary enum.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum
2025-04-25 17:14 [PATCH net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum Kory Maincent
2025-04-28 22:51 ` Jakub Kicinski
@ 2025-04-28 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-04-28 23:00 UTC (permalink / raw)
To: Kory Maincent
Cc: netdev, linux-kernel, maxime.chevallier, thomas.petazzoni, andrew,
kuba, donald.hunter, davem, edumazet, pabeni, horms
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 25 Apr 2025 19:14:18 +0200 you wrote:
> The phy-upstream enum is already defined in the ethtool.h UAPI header
> and used by the ethtool userspace tool. However, the ethtool spec does
> not reference it, causing YNL to auto-generate a duplicate and redundant
> enum.
>
> Fix this by updating the spec to reference the existing UAPI enum
> in ethtool.h.
>
> [...]
Here is the summary with links:
- [net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum
https://git.kernel.org/netdev/net/c/10c34b7d71a4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-28 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-25 17:14 [PATCH net-next] netlink: specs: ethtool: Remove UAPI duplication of phy-upstream enum Kory Maincent
2025-04-28 22:51 ` Jakub Kicinski
2025-04-28 23:00 ` patchwork-bot+netdevbpf
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).