Skip to contentSkip to conversation

netlink: specs: enum alignment fixes

PATCH Applied Asbjørn Sloth Tønnesen 3 participants 20 messages Sep 25 – Sep 29

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover netlink: specs: enum alignment fixes

This series fixes misalignment issues in YNL-defined enums or flags.

Changes:
v2: (got delayed due to conference activities)
- Add Reviewed-by's (thanks Jakub, Moshe, Kory and Toke)
- Patch 1: Add "fixes" in prose, as Clashiko guessed wrong.
- Patch 2: Mention renaming ect{0,1}-pkts in commit message (Clashiko).
- Drop old patch 4.
- Patch 4 (was patch 5): Remove redundant enum-as-flags (thanks Moshe).
v1: https://lore.kernel.org/[email protected]

While this is not a direct continuation, the rt-link changes was previously posted as part of another RFC:
https://lore.kernel.org/[email protected]

Asbjørn Sloth Tønnesen (9):
netlink: specs: rt-link: re-align IPv4 devconf
netlink: specs: rt-link: re-align ifla-inet6-stats
netlink: specs: rt-link: fix ifinfo-flags names
netlink: specs: devlink: fix resource-scope type
netlink: specs: ethtool: re-align c33-pse-ext-state
netlink: specs: ethtool: re-align module-fw-flash-status
netlink: specs: nl80211: fix naming of enum members
netlink: specs: tc: fix typo in cls-flags
netlink: specs: fix incorrect name-prefixes

 Documentation/netlink/specs/devlink.yaml |  3 +--
 Documentation/netlink/specs/ethtool.yaml |  4 ++-
 Documentation/netlink/specs/nl80211.yaml |  4 +--
 Documentation/netlink/specs/rt-link.yaml | 33 +++++++++++++-----------
 Documentation/netlink/specs/tc.yaml      |  2 +-
 5 files changed, 25 insertions(+), 21 deletions(-)

base-commit: 42a9fb3382fc2573e92f41d203b095d9a372cfc9

Signature · 1 line
2.55.0
#1 lore raw

PATCH v2 1/9 netlink: specs: rt-link: re-align IPv4 devconf

The YNL "ipv4-devconf" enum is misaligned with the IPV4_DEVCONF_* enum.

IPV4_DEVCONF_* starts at 1, ipv4-devconf starts at 0.

$ git grep -B3 -A1 IPV4_DEVCONF_FORWARDING include/
inc../uapi/linux/ip.h-/* index values for the variables in ipv4_devconf */
inc../uapi/linux/ip.h-enum
inc../uapi/linux/ip.h-{
inc../uapi/linux/ip.h:        IPV4_DEVCONF_FORWARDING=1,
inc../uapi/linux/ip.h-        IPV4_DEVCONF_MC_FORWARDING,

Re-align the YNL spec by explicitly setting the first value to 1.

This misalignment has been present since the spec was added in commit b2f63d904e72 ("doc/netlink: Add spec for rt link messages").

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/rt-link.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/netlink/specs/rt-link.yaml +1 -0
index 7a72cd1b7e1e..8d63933f9910 100644
@@ -309,6 +309,7 @@ definitions:
     entries:
       -
         name: forwarding
+        value: 1
       -
         name: mc-forwarding
       -
Signature · 1 line
2.55.0
Reviewed-by on v2 1/9
#2 lore raw

Re: [PATCH net-next v2 1/9] netlink: specs: rt-link: re-align IPv4 devconf

Quoted 39 lines · Asbjørn Sloth Tønnesen

The YNL "ipv4-devconf" enum is misaligned with the IPV4_DEVCONF_* enum.

IPV4_DEVCONF_* starts at 1, ipv4-devconf starts at 0.

$ git grep -B3 -A1 IPV4_DEVCONF_FORWARDING include/
inc../uapi/linux/ip.h-/* index values for the variables in ipv4_devconf */
inc../uapi/linux/ip.h-enum
inc../uapi/linux/ip.h-{
inc../uapi/linux/ip.h:        IPV4_DEVCONF_FORWARDING=1,
inc../uapi/linux/ip.h-        IPV4_DEVCONF_MC_FORWARDING,

Re-align the YNL spec by explicitly setting the first value to 1.

This misalignment has been present since the spec was added in commit b2f63d904e72 ("doc/netlink: Add spec for rt link messages").

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/rt-link.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/netlink/specs/rt-link.yaml +1 -0
index 7a72cd1b7e1e..8d63933f9910 100644
@@ -309,6 +309,7 @@ definitions:
     entries:
       -
         name: forwarding
+        value: 1
       -
         name: mc-forwarding
       -
Signature · 1 line
2.55.0
#3 lore raw

PATCH v2 2/9 netlink: specs: rt-link: re-align ifla-inet6-stats

In reply to Asbjørn Sloth Tønnesen

YNL enum ifla-inet6-stats got misaligned with C, as two commits reordered the enum.

In commit b4a11b2033b7 ("net: fix IPSTATS_MIB_OUTPKGS increment in OutForwDatagrams."), IPSTATS_MIB_OUTPKTS was renamed to _OUTREQUESTS and a new _OUTPKTS was as the last entry.

In commit 652e2c777862 ("net: reorganize IP MIB values (II)"), the IPSTATS_MIB_* enum was reorganized for data locality.

Neither of these commits updated the YNL spec.

This changed uAPI, as IPSTATS_MIB_* is used as indicies in an u64 array, exported as IFLA_INET6_STATS by inet6_fill_ifla6_stats_attrs().

This patch updates ifla-inet6-stats to reflect both of these commits. Next time we want to reorganize these counters we should properly apply mapping as to maintain the current order on the netlink side.

While touching these entries, also remove the dash from ect{0,1}-pkts, so that they align with the C naming.

This pre-existing issue was identified by Sashiko during review of commit 2b0aecb7b2b1 ("netlink: specs: rt-link: add accept-ra-min-lft").

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/rt-link.yaml | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
Documentation/netlink/specs/rt-link.yaml +11 -9
index 8d63933f9910..3560053cea7a 100644
@@ -532,11 +532,21 @@ definitions:
       -
         name: indelivers
       -
-        name: outforwdatagrams
+        name: noectpkts
+      -
+        name: ect1pkts
+      -
+        name: ect0pkts
+      -
+        name: cepkts
+      -
+        name: outrequests
       -
         name: outpkts
       -
         name: outoctets
+      -
+        name: outforwdatagrams
       -
         name: inhdrerrors
       -
@@ -587,14 +597,6 @@ definitions:
         name: outbcastoctets
       -
         name: csumerrors
-      -
-        name: noectpkts
-      -
-        name: ect1-pkts
-      -
-        name: ect0-pkts
-      -
-        name: cepkts
       -
         name: reasm-overlaps
   - name: br-boolopt-multi
Signature · 1 line
2.55.0
Reviewed-by on v2 2/9
#4 lore raw

Re: [PATCH net-next v2 2/9] netlink: specs: rt-link: re-align ifla-inet6-stats

Quoted 81 lines · Asbjørn Sloth Tønnesen

YNL enum ifla-inet6-stats got misaligned with C, as two commits reordered the enum.

In commit b4a11b2033b7 ("net: fix IPSTATS_MIB_OUTPKGS increment in OutForwDatagrams."), IPSTATS_MIB_OUTPKTS was renamed to _OUTREQUESTS and a new _OUTPKTS was as the last entry.

In commit 652e2c777862 ("net: reorganize IP MIB values (II)"), the IPSTATS_MIB_* enum was reorganized for data locality.

Neither of these commits updated the YNL spec.

This changed uAPI, as IPSTATS_MIB_* is used as indicies in an u64 array, exported as IFLA_INET6_STATS by inet6_fill_ifla6_stats_attrs().

This patch updates ifla-inet6-stats to reflect both of these commits. Next time we want to reorganize these counters we should properly apply mapping as to maintain the current order on the netlink side.

While touching these entries, also remove the dash from ect{0,1}-pkts, so that they align with the C naming.

This pre-existing issue was identified by Sashiko during review of commit 2b0aecb7b2b1 ("netlink: specs: rt-link: add accept-ra-min-lft").

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/rt-link.yaml | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
Documentation/netlink/specs/rt-link.yaml +11 -9
index 8d63933f9910..3560053cea7a 100644
@@ -532,11 +532,21 @@ definitions:
       -
         name: indelivers
       -
-        name: outforwdatagrams
+        name: noectpkts
+      -
+        name: ect1pkts
+      -
+        name: ect0pkts
+      -
+        name: cepkts
+      -
+        name: outrequests
       -
         name: outpkts
       -
         name: outoctets
+      -
+        name: outforwdatagrams
       -
         name: inhdrerrors
       -
@@ -587,14 +597,6 @@ definitions:
         name: outbcastoctets
       -
         name: csumerrors
-      -
-        name: noectpkts
-      -
-        name: ect1-pkts
-      -
-        name: ect0-pkts
-      -
-        name: cepkts
       -
         name: reasm-overlaps
   - name: br-boolopt-multi
Signature · 1 line
2.55.0
#5 lore raw

PATCH v2 3/9 netlink: specs: rt-link: fix ifinfo-flags names

In reply to Asbjørn Sloth Tønnesen

Correct the names of enum net_device_flags constants:

- IFF_POINTOPOINT should be "pointopoint", not "point-to-point".
- IFF_NOTRAILERS should be "notrailers", not "no-trailers".
- IFF_NOARP should be "noarp", not "no-arp".
- IFF_ALLMULTI should be "allmulti", not "all-multi".
- IFF_AUTOMEDIA should be "automedia", not "auto-media".

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/rt-link.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/netlink/specs/rt-link.yaml +5 -5
index 3560053cea7a..e3a4b4e7e5ef 100644
@@ -25,17 +25,17 @@ definitions:
       -
         name: loopback
       -
-        name: point-to-point
+        name: pointopoint
       -
-        name: no-trailers
+        name: notrailers
       -
         name: running
       -
-        name: no-arp
+        name: noarp
       -
         name: promisc
       -
-        name: all-multi
+        name: allmulti
       -
         name: master
       -
@@ -45,7 +45,7 @@ definitions:
       -
         name: portsel
       -
-        name: auto-media
+        name: automedia
       -
         name: dynamic
       -
Signature · 1 line
2.55.0
Reviewed-by on v2 3/9
#6 lore raw

Re: [PATCH net-next v2 3/9] netlink: specs: rt-link: fix ifinfo-flags names

Quoted 54 lines · Asbjørn Sloth Tønnesen

Correct the names of enum net_device_flags constants:

- IFF_POINTOPOINT should be "pointopoint", not "point-to-point".
- IFF_NOTRAILERS should be "notrailers", not "no-trailers".
- IFF_NOARP should be "noarp", not "no-arp".
- IFF_ALLMULTI should be "allmulti", not "all-multi".
- IFF_AUTOMEDIA should be "automedia", not "auto-media".

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/rt-link.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/netlink/specs/rt-link.yaml +5 -5
index 3560053cea7a..e3a4b4e7e5ef 100644
@@ -25,17 +25,17 @@ definitions:
       -
         name: loopback
       -
-        name: point-to-point
+        name: pointopoint
       -
-        name: no-trailers
+        name: notrailers
       -
         name: running
       -
-        name: no-arp
+        name: noarp
       -
         name: promisc
       -
-        name: all-multi
+        name: allmulti
       -
         name: master
       -
@@ -45,7 +45,7 @@ definitions:
       -
         name: portsel
       -
-        name: auto-media
+        name: automedia
       -
         name: dynamic
       -
Signature · 1 line
2.55.0
#7 lore raw

PATCH v2 4/9 netlink: specs: devlink: fix resource-scope type

In reply to Asbjørn Sloth Tønnesen

The correct type for resource-scope is flags, not enum:

- DEVLINK_RESOURCE_SCOPE_DEV is _BITUL(0) aka. 1, not 0.
- DEVLINK_RESOURCE_SCOPE_PORT is _BITUL(1) aka. 2, not 1.

This patch also removes "enum-as-flags", as it is now redundant, these changes does not change the generated policy.

Before this patch, this generated devlink-user.c function call:
devlink_resource_scope_str(DEVLINK_RESOURCE_SCOPE_DEV) returned "port", not "dev", as it didn't use ffs() to convert the value.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/devlink.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Documentation/netlink/specs/devlink.yaml +1 -2
index 1de0daa0f921..4706de628392 100644
@@ -158,7 +158,7 @@ definitions:
       -
         name: entry
   -
-    type: enum
+    type: flags
     name: resource-scope
     entries:
       -
@@ -903,7 +903,6 @@ attribute-sets:
         name: resource-scope-mask
         type: u32
         enum: resource-scope
-        enum-as-flags: true
         doc: |
           Bitmask selecting which resource classes to include in a
           resource-dump response. Bit 0 (dev) selects device-level
Signature · 1 line
2.55.0
Reviewed-by on v2 4/9
#8 lore raw

Re: [PATCH net-next v2 4/9] netlink: specs: devlink: fix resource-scope type

Quoted 47 lines · Asbjørn Sloth Tønnesen

The correct type for resource-scope is flags, not enum:

- DEVLINK_RESOURCE_SCOPE_DEV is _BITUL(0) aka. 1, not 0.
- DEVLINK_RESOURCE_SCOPE_PORT is _BITUL(1) aka. 2, not 1.

This patch also removes "enum-as-flags", as it is now redundant, these changes does not change the generated policy.

Before this patch, this generated devlink-user.c function call:
devlink_resource_scope_str(DEVLINK_RESOURCE_SCOPE_DEV) returned "port", not "dev", as it didn't use ffs() to convert the value.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/devlink.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Documentation/netlink/specs/devlink.yaml +1 -2
index 1de0daa0f921..4706de628392 100644
@@ -158,7 +158,7 @@ definitions:
       -
         name: entry
   -
-    type: enum
+    type: flags
     name: resource-scope
     entries:
       -
@@ -903,7 +903,6 @@ attribute-sets:
         name: resource-scope-mask
         type: u32
         enum: resource-scope
-        enum-as-flags: true
         doc: |
           Bitmask selecting which resource classes to include in a
           resource-dump response. Bit 0 (dev) selects device-level
Signature · 1 line
2.55.0
#9 lore raw

PATCH v2 5/9 netlink: specs: ethtool: re-align c33-pse-ext-state

In reply to Asbjørn Sloth Tønnesen

enum ethtool_c33_pse_ext_state is misaligned with YNL:

- ETHTOOL_C33_PSE_EXT_STATE_OVLD_DETECTED is 6.
- ETHTOOL_C33_PSE_EXT_STATE_PD_DLL_POWER_TYPE is 7 (not in YNL).
- ETHTOOL_C33_PSE_EXT_STATE_POWER_NOT_AVAILABLE is 8, not 7.
- ETHTOOL_C33_PSE_EXT_STATE_SHORT_DETECTED is 9, not 8.

In commit c8149739af86 ("netlink: specs: Expand the PSE netlink command with C33 new features") the PD_DLL_POWER_TYPE enum member was skipped, leading incorrect values for power-not-available and short-detected.

As PD_DLL_POWER_TYPE is not used, then skip it, but set the value for power-not-available to 8.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/ethtool.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/netlink/specs/ethtool.yaml +1 -0
index 5dd4d1b5d94b..439bf24e7c33 100644
@@ -89,6 +89,7 @@ definitions:
       -
         name: power-not-available
         doc: Group of power_not_available states
+        value: 8
       -
         name: short-detected
         doc: Group of short_detected states
Signature · 1 line
2.55.0
Reviewed-by on v2 5/9
#10 lore raw

Re: [PATCH net-next v2 5/9] netlink: specs: ethtool: re-align c33-pse-ext-state

Quoted 40 lines · Asbjørn Sloth Tønnesen

enum ethtool_c33_pse_ext_state is misaligned with YNL:

- ETHTOOL_C33_PSE_EXT_STATE_OVLD_DETECTED is 6.
- ETHTOOL_C33_PSE_EXT_STATE_PD_DLL_POWER_TYPE is 7 (not in YNL).
- ETHTOOL_C33_PSE_EXT_STATE_POWER_NOT_AVAILABLE is 8, not 7.
- ETHTOOL_C33_PSE_EXT_STATE_SHORT_DETECTED is 9, not 8.

In commit c8149739af86 ("netlink: specs: Expand the PSE netlink command with C33 new features") the PD_DLL_POWER_TYPE enum member was skipped, leading incorrect values for power-not-available and short-detected.

As PD_DLL_POWER_TYPE is not used, then skip it, but set the value for power-not-available to 8.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/ethtool.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/netlink/specs/ethtool.yaml +1 -0
index 5dd4d1b5d94b..439bf24e7c33 100644
@@ -89,6 +89,7 @@ definitions:
       -
         name: power-not-available
         doc: Group of power_not_available states
+        value: 8
       -
         name: short-detected
         doc: Group of short_detected states
Signature · 1 line
2.55.0
#11 lore raw

PATCH v2 6/9 netlink: specs: ethtool: re-align module-fw-flash-status

In reply to Asbjørn Sloth Tønnesen

Correct the values for enum ethtool_module_fw_flash_status:

- ETHTOOL_MODULE_FW_FLASH_STATUS_STARTED is 1, not 0.
- ETHTOOL_MODULE_FW_FLASH_STATUS_IN_PROGRESS is 2, not 1.
- ETHTOOL_MODULE_FW_FLASH_STATUS_COMPLETED is 3, not 2.
- ETHTOOL_MODULE_FW_FLASH_STATUS_ERROR is 4, not 3.

Re-align the YNL spec by explicitly setting the first value to 1.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/ethtool.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/netlink/specs/ethtool.yaml +1 -0
index 439bf24e7c33..6868eb473478 100644
@@ -47,6 +47,7 @@ definitions:
       -
         name: started
         doc: The firmware flashing process has started.
+        value: 1
       -
         name: in-progress
         doc: The firmware flashing process is in progress.
Signature · 1 line
2.55.0
Reviewed-by on v2 6/9
#12 lore raw

Re: [PATCH net-next v2 6/9] netlink: specs: ethtool: re-align module-fw-flash-status

Quoted 34 lines · Asbjørn Sloth Tønnesen

Correct the values for enum ethtool_module_fw_flash_status:

- ETHTOOL_MODULE_FW_FLASH_STATUS_STARTED is 1, not 0.
- ETHTOOL_MODULE_FW_FLASH_STATUS_IN_PROGRESS is 2, not 1.
- ETHTOOL_MODULE_FW_FLASH_STATUS_COMPLETED is 3, not 2.
- ETHTOOL_MODULE_FW_FLASH_STATUS_ERROR is 4, not 3.

Re-align the YNL spec by explicitly setting the first value to 1.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/ethtool.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/netlink/specs/ethtool.yaml +1 -0
index 439bf24e7c33..6868eb473478 100644
@@ -47,6 +47,7 @@ definitions:
       -
         name: started
         doc: The firmware flashing process has started.
+        value: 1
       -
         name: in-progress
         doc: The firmware flashing process is in progress.
Signature · 1 line
2.55.0
#13 lore raw

PATCH v2 7/9 netlink: specs: nl80211: fix naming of enum members

In reply to Asbjørn Sloth Tønnesen

Use the correct naming for enum members:

- In feature-flags, it's NL80211_FEATURE_ND_RANDOM_MAC_ADDR, so "nd-random-mac-addr", not "no-random-mac-addr".

- In commands, it's NL80211_CMD_UNEXPECTED_4ADDR_FRAME, so "unexpected-4addr-frame", not "unexpected-4-addr-frame".

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/nl80211.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/netlink/specs/nl80211.yaml +2 -2
index d9fdd66b497e..efc783fb8fdf 100644
@@ -97,7 +97,7 @@ definitions:
       - unexpected-frame
       - probe-client
       - register-beacons
-      - unexpected-4-addr-frame
+      - unexpected-4addr-frame
       - set-noack-map
       - ch-switch-notify
       - start-p2p-device
@@ -202,7 +202,7 @@ definitions:
       - tdls-channel-switch
       - scan-random-mac-addr
       - sched-scan-random-mac-addr
-      - no-random-mac-addr
+      - nd-random-mac-addr
   -
     name: channel-type
     type: enum
Signature · 1 line
2.55.0
Reviewed-by on v2 7/9
#14 lore raw

Re: [PATCH net-next v2 7/9] netlink: specs: nl80211: fix naming of enum members

Quoted 43 lines · Asbjørn Sloth Tønnesen

Use the correct naming for enum members:

- In feature-flags, it's NL80211_FEATURE_ND_RANDOM_MAC_ADDR, so "nd-random-mac-addr", not "no-random-mac-addr".

- In commands, it's NL80211_CMD_UNEXPECTED_4ADDR_FRAME, so "unexpected-4addr-frame", not "unexpected-4-addr-frame".

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/nl80211.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/netlink/specs/nl80211.yaml +2 -2
index d9fdd66b497e..efc783fb8fdf 100644
@@ -97,7 +97,7 @@ definitions:
       - unexpected-frame
       - probe-client
       - register-beacons
-      - unexpected-4-addr-frame
+      - unexpected-4addr-frame
       - set-noack-map
       - ch-switch-notify
       - start-p2p-device
@@ -202,7 +202,7 @@ definitions:
       - tdls-channel-switch
       - scan-random-mac-addr
       - sched-scan-random-mac-addr
-      - no-random-mac-addr
+      - nd-random-mac-addr
   -
     name: channel-type
     type: enum
Signature · 1 line
2.55.0
#15 lore raw

PATCH v2 8/9 netlink: specs: tc: fix typo in cls-flags

In reply to Asbjørn Sloth Tønnesen

Fix a typo in the naming of a cls-flags constant.

The correct name for TCA_CLS_FLAGS_NOT_IN_HW is "not-in-hw", not "not-in-nw".

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/tc.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/netlink/specs/tc.yaml +1 -1
index 2e663333a279..b6ccc645b0e3 100644
@@ -42,7 +42,7 @@ definitions:
       - skip-hw
       - skip-sw
       - in-hw
-      - not-in-nw
+      - not-in-hw
       - verbose
   -
     name: flower-key-ctrl-flags
Signature · 1 line
2.55.0
Reviewed-by on v2 8/9
#16 lore raw

Re: [PATCH net-next v2 8/9] netlink: specs: tc: fix typo in cls-flags

Quoted 32 lines · Asbjørn Sloth Tønnesen

Fix a typo in the naming of a cls-flags constant.

The correct name for TCA_CLS_FLAGS_NOT_IN_HW is "not-in-hw", not "not-in-nw".

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/tc.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/netlink/specs/tc.yaml +1 -1
index 2e663333a279..b6ccc645b0e3 100644
@@ -42,7 +42,7 @@ definitions:
       - skip-hw
       - skip-sw
       - in-hw
-      - not-in-nw
+      - not-in-hw
       - verbose
   -
     name: flower-key-ctrl-flags
Signature · 1 line
2.55.0
#17 lore raw

PATCH v2 9/9 netlink: specs: fix incorrect name-prefixes

In reply to Asbjørn Sloth Tønnesen

Fix two invalid name-prefixes in the specs:

- It's PHY_UPSTREAM_MAC, not PHY_UPSTREAMMAC.
- It's PHY_UPSTREAM_PHY, not PHY_UPSTREAMPHY.
- It's OVPN_MODE_P2P, not OVPN_MODEP2P.
- It's OVPN_MODE_MP, not OVPN_MODEMP.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/ethtool.yaml | 2 +-
 Documentation/netlink/specs/rt-link.yaml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/netlink/specs/ethtool.yaml +1 -1
index 6868eb473478..a66594ad9e73 100644
@@ -99,7 +99,7 @@ definitions:
     enum-name: phy-upstream
     header: linux/ethtool.h
     type: enum
-    name-prefix: phy-upstream
+    name-prefix: phy-upstream-
     entries: [mac, phy]
   -
     name: tcp-data-split
Documentation/netlink/specs/rt-link.yaml +1 -1
index e3a4b4e7e5ef..81b58633911d 100644
@@ -842,7 +842,7 @@ definitions:
   -
     name: ovpn-mode
     enum-name: ovpn-mode
-    name-prefix: ovpn-mode
+    name-prefix: ovpn-mode-
     type: enum
     entries:
       - p2p
Signature · 1 line
2.55.0
Reviewed-by on v2 9/9
#18 lore raw

Re: [PATCH net-next v2 9/9] netlink: specs: fix incorrect name-prefixes

Quoted 47 lines · Asbjørn Sloth Tønnesen

Fix two invalid name-prefixes in the specs:

- It's PHY_UPSTREAM_MAC, not PHY_UPSTREAMMAC.
- It's PHY_UPSTREAM_PHY, not PHY_UPSTREAMPHY.
- It's OVPN_MODE_P2P, not OVPN_MODEP2P.
- It's OVPN_MODE_MP, not OVPN_MODEMP.

---
Note for Sashiko/Clashiko: Targeting net-next, so no "Fixes" tag.

 Documentation/netlink/specs/ethtool.yaml | 2 +-
 Documentation/netlink/specs/rt-link.yaml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/netlink/specs/ethtool.yaml +1 -1
index 6868eb473478..a66594ad9e73 100644
@@ -99,7 +99,7 @@ definitions:
     enum-name: phy-upstream
     header: linux/ethtool.h
     type: enum
-    name-prefix: phy-upstream
+    name-prefix: phy-upstream-
     entries: [mac, phy]
   -
     name: tcp-data-split
Documentation/netlink/specs/rt-link.yaml +1 -1
index e3a4b4e7e5ef..81b58633911d 100644
@@ -842,7 +842,7 @@ definitions:
   -
     name: ovpn-mode
     enum-name: ovpn-mode
-    name-prefix: ovpn-mode
+    name-prefix: ovpn-mode-
     type: enum
     entries:
       - p2p
Signature · 1 line
2.55.0
#19 lore raw
In reply to Asbjørn Sloth Tønnesen
This series was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 11 lines · On Fri, 25 Sep 2026 21:39:03 +0000 you wrote:

This series fixes misalignment issues in YNL-defined enums or flags.

Changes:
v2: (got delayed due to conference activities)
- Add Reviewed-by's (thanks Jakub, Moshe, Kory and Toke)
- Patch 1: Add "fixes" in prose, as Clashiko guessed wrong.
- Patch 2: Mention renaming ect{0,1}-pkts in commit message (Clashiko).
- Drop old patch 4.
- Patch 4 (was patch 5): Remove redundant enum-as-flags (thanks Moshe).
v1: https://lore.kernel.org/[email protected]

Quoted 1 line

[...]

Here is the summary with links:
- [net-next,v2,1/9] netlink: specs: rt-link: re-align IPv4 devconf

    https://git.kernel.org/netdev/net-next/c/e769837e4e5c
  - [net-next,v2,2/9] netlink: specs: rt-link: re-align ifla-inet6-stats
    https://git.kernel.org/netdev/net-next/c/621524a737f1
  - [net-next,v2,3/9] netlink: specs: rt-link: fix ifinfo-flags names
    https://git.kernel.org/netdev/net-next/c/306df818cc64
  - [net-next,v2,4/9] netlink: specs: devlink: fix resource-scope type
    https://git.kernel.org/netdev/net-next/c/bef8442f5ffa
  - [net-next,v2,5/9] netlink: specs: ethtool: re-align c33-pse-ext-state
    https://git.kernel.org/netdev/net-next/c/fe6a71dc0fbe
  - [net-next,v2,6/9] netlink: specs: ethtool: re-align module-fw-flash-status
    https://git.kernel.org/netdev/net-next/c/a9a98457342a
  - [net-next,v2,7/9] netlink: specs: nl80211: fix naming of enum members
    https://git.kernel.org/netdev/net-next/c/479ecf856c21
  - [net-next,v2,8/9] netlink: specs: tc: fix typo in cls-flags
    https://git.kernel.org/netdev/net-next/c/5fd016f357f7
  - [net-next,v2,9/9] netlink: specs: fix incorrect name-prefixes
    https://git.kernel.org/netdev/net-next/c/8450becb88f8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html