netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 00/10] netlink: specs: enforce strict naming of properties
@ 2025-06-24 21:09 Jakub Kicinski
  2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
                   ` (10 more replies)
  0 siblings, 11 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski

I got annoyed once again by the name properties in the ethtool spec
which use underscore instead of dash. I previously assumed that there
is a lot of such properties in the specs so fixing them now would
be near impossible. On a closer look, however, I only found 22
(rough grep suggests we have ~4.8k names in the specs, so bad ones
are just 0.46%).

Add a regex to the JSON schema to enforce the naming, fix the few
bad names. I was hoping we could start enforcing this from newer
families, but there's no correlation between the protocol and the
number of errors. If anything classic netlink has more recently
added specs so it has fewer errors.

The regex is just for name properties which will end up visible
to the user (in Python or YNL CLI). I left the c-name properties
alone, those don't matter as much. C codegen rewrites them, anyway.

I'm not updating the spec for genetlink-c. Looks like it has no
users, new families use genetlink, all old ones need genetlink-legacy.
If these patches are merged I will remove genetlink-c completely
in net-next.

Jakub Kicinski (10):
  netlink: specs: nfsd: replace underscores with dashes in names
  netlink: specs: fou: replace underscores with dashes in names
  netlink: specs: ethtool: replace underscores with dashes in names
  netlink: specs: dpll: replace underscores with dashes in names
  netlink: specs: devlink: replace underscores with dashes in names
  netlink: specs: ovs_flow: replace underscores with dashes in names
  netlink: specs: mptcp: replace underscores with dashes in names
  netlink: specs: rt-link: replace underscores with dashes in names
  netlink: specs: tc: replace underscores with dashes in names
  netlink: specs: enforce strict naming of properties

 Documentation/netlink/genetlink-legacy.yaml   | 15 ++++----
 Documentation/netlink/genetlink.yaml          | 17 +++++----
 Documentation/netlink/netlink-raw.yaml        | 18 ++++++----
 Documentation/netlink/specs/devlink.yaml      |  8 ++---
 Documentation/netlink/specs/dpll.yaml         |  2 +-
 Documentation/netlink/specs/ethtool.yaml      |  6 ++--
 Documentation/netlink/specs/fou.yaml          | 36 +++++++++----------
 Documentation/netlink/specs/mptcp_pm.yaml     |  8 ++---
 Documentation/netlink/specs/nfsd.yaml         |  4 +--
 Documentation/netlink/specs/ovs_flow.yaml     |  6 ++--
 Documentation/netlink/specs/rt-link.yaml      |  4 +--
 Documentation/netlink/specs/tc.yaml           |  4 +--
 include/uapi/linux/mptcp_pm.h                 |  6 ++--
 .../drivers/net/hw/rss_input_xfrm.py          |  2 +-
 14 files changed, 74 insertions(+), 62 deletions(-)

-- 
2.49.0


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

* [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-25  9:49   ` Donald Hunter
                     ` (2 more replies)
  2025-06-24 21:09 ` [PATCH net 02/10] netlink: specs: fou: " Jakub Kicinski
                   ` (9 subsequent siblings)
  10 siblings, 3 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	chuck.lever, jlayton, lorenzo

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: 13727f85b49b ("NFSD: introduce netlink stubs")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: chuck.lever@oracle.com
CC: jlayton@kernel.org
CC: lorenzo@kernel.org
---
 Documentation/netlink/specs/nfsd.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/netlink/specs/nfsd.yaml b/Documentation/netlink/specs/nfsd.yaml
index c87658114852..8d1a3c01708f 100644
--- a/Documentation/netlink/specs/nfsd.yaml
+++ b/Documentation/netlink/specs/nfsd.yaml
@@ -27,7 +27,7 @@ doc: NFSD configuration over generic netlink.
         name: proc
         type: u32
       -
-        name: service_time
+        name: service-time
         type: s64
       -
         name: pad
@@ -139,7 +139,7 @@ doc: NFSD configuration over generic netlink.
             - prog
             - version
             - proc
-            - service_time
+            - service-time
             - saddr4
             - daddr4
             - saddr6
-- 
2.49.0


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

* [PATCH net 02/10] netlink: specs: fou: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
  2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-25  9:51   ` Donald Hunter
  2025-06-24 21:09 ` [PATCH net 03/10] netlink: specs: ethtool: " Jakub Kicinski
                   ` (8 subsequent siblings)
  10 siblings, 1 reply; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	sdf

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: 4eb77b4ecd3c ("netlink: add a proto specification for FOU")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: sdf@fomichev.me
---
 Documentation/netlink/specs/fou.yaml | 36 ++++++++++++++--------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/Documentation/netlink/specs/fou.yaml b/Documentation/netlink/specs/fou.yaml
index 0af5ab842c04..b02ab19817d3 100644
--- a/Documentation/netlink/specs/fou.yaml
+++ b/Documentation/netlink/specs/fou.yaml
@@ -15,7 +15,7 @@ kernel-policy: global
 definitions:
   -
     type: enum
-    name: encap_type
+    name: encap-type
     name-prefix: fou-encap-
     enum-name:
     entries: [ unspec, direct, gue ]
@@ -43,26 +43,26 @@ kernel-policy: global
         name: type
         type: u8
       -
-        name: remcsum_nopartial
+        name: remcsum-nopartial
         type: flag
       -
-        name: local_v4
+        name: local-v4
         type: u32
       -
-        name: local_v6
+        name: local-v6
         type: binary
         checks:
           min-len: 16
       -
-        name: peer_v4
+        name: peer-v4
         type: u32
       -
-        name: peer_v6
+        name: peer-v6
         type: binary
         checks:
           min-len: 16
       -
-        name: peer_port
+        name: peer-port
         type: u16
         byte-order: big-endian
       -
@@ -90,12 +90,12 @@ kernel-policy: global
             - port
             - ipproto
             - type
-            - remcsum_nopartial
-            - local_v4
-            - peer_v4
-            - local_v6
-            - peer_v6
-            - peer_port
+            - remcsum-nopartial
+            - local-v4
+            - peer-v4
+            - local-v6
+            - peer-v6
+            - peer-port
             - ifindex
 
     -
@@ -112,11 +112,11 @@ kernel-policy: global
             - af
             - ifindex
             - port
-            - peer_port
-            - local_v4
-            - peer_v4
-            - local_v6
-            - peer_v6
+            - peer-port
+            - local-v4
+            - peer-v4
+            - local-v6
+            - peer-v6
 
     -
       name: get
-- 
2.49.0


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

* [PATCH net 03/10] netlink: specs: ethtool: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
  2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
  2025-06-24 21:09 ` [PATCH net 02/10] netlink: specs: fou: " Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-24 23:07   ` Kory Maincent
  2025-06-25  9:51   ` Donald Hunter
  2025-06-24 21:09 ` [PATCH net 04/10] netlink: specs: dpll: " Jakub Kicinski
                   ` (7 subsequent siblings)
  10 siblings, 2 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	andrew, shuah, kory.maincent, sdf, gal, noren, ahmed.zaki,
	wojciech.drewek, petrm, danieller, linux-kselftest

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen replaces special chars in names)
but gives more uniform naming in Python.

Fixes: 13e59344fb9d ("net: ethtool: add support for symmetric-xor RSS hash")
Fixes: 46fb3ba95b93 ("ethtool: Add an interface for flashing transceiver modules' firmware")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: andrew@lunn.ch
CC: donald.hunter@gmail.com
CC: shuah@kernel.org
CC: kory.maincent@bootlin.com
CC: sdf@fomichev.me
CC: gal@nvidia.com
CC: noren@nvidia.com
CC: ahmed.zaki@intel.com
CC: wojciech.drewek@intel.com
CC: petrm@nvidia.com
CC: danieller@nvidia.com
CC: linux-kselftest@vger.kernel.org
---
 Documentation/netlink/specs/ethtool.yaml                 | 6 +++---
 tools/testing/selftests/drivers/net/hw/rss_input_xfrm.py | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml
index 72a076b0e1b5..348c6ad548f5 100644
--- a/Documentation/netlink/specs/ethtool.yaml
+++ b/Documentation/netlink/specs/ethtool.yaml
@@ -48,7 +48,7 @@ c-version-name: ethtool-genl-version
         name: started
         doc: The firmware flashing process has started.
       -
-        name: in_progress
+        name: in-progress
         doc: The firmware flashing process is in progress.
       -
         name: completed
@@ -1422,7 +1422,7 @@ c-version-name: ethtool-genl-version
         name: hkey
         type: binary
       -
-        name: input_xfrm
+        name: input-xfrm
         type: u32
       -
         name: start-context
@@ -2238,7 +2238,7 @@ c-version-name: ethtool-genl-version
             - hfunc
             - indir
             - hkey
-            - input_xfrm
+            - input-xfrm
       dump:
         request:
           attributes:
diff --git a/tools/testing/selftests/drivers/net/hw/rss_input_xfrm.py b/tools/testing/selftests/drivers/net/hw/rss_input_xfrm.py
index f439c434ba36..648ff50bc1c3 100755
--- a/tools/testing/selftests/drivers/net/hw/rss_input_xfrm.py
+++ b/tools/testing/selftests/drivers/net/hw/rss_input_xfrm.py
@@ -38,7 +38,7 @@ from lib.py import rand_port
         raise KsftSkipEx("socket.SO_INCOMING_CPU was added in Python 3.11")
 
     input_xfrm = cfg.ethnl.rss_get(
-        {'header': {'dev-name': cfg.ifname}}).get('input_xfrm')
+        {'header': {'dev-name': cfg.ifname}}).get('input-xfrm')
 
     # Check for symmetric xor/or-xor
     if not input_xfrm or (input_xfrm != 1 and input_xfrm != 2):
-- 
2.49.0


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

* [PATCH net 04/10] netlink: specs: dpll: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (2 preceding siblings ...)
  2025-06-24 21:09 ` [PATCH net 03/10] netlink: specs: ethtool: " Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-24 22:58   ` Vadim Fedorenko
  2025-06-25  9:52   ` Donald Hunter
  2025-06-24 21:09 ` [PATCH net 05/10] netlink: specs: devlink: " Jakub Kicinski
                   ` (6 subsequent siblings)
  10 siblings, 2 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	jiri, arkadiusz.kubalewski, aleksandr.loktionov, michal.michalik,
	vadim.fedorenko

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: 3badff3a25d8 ("dpll: spec: Add Netlink spec in YAML")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: jiri@resnulli.us
CC: arkadiusz.kubalewski@intel.com
CC: aleksandr.loktionov@intel.com
CC: michal.michalik@intel.com
CC: vadim.fedorenko@linux.dev
---
 Documentation/netlink/specs/dpll.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/netlink/specs/dpll.yaml b/Documentation/netlink/specs/dpll.yaml
index 8feefeae5376..f434140b538e 100644
--- a/Documentation/netlink/specs/dpll.yaml
+++ b/Documentation/netlink/specs/dpll.yaml
@@ -188,7 +188,7 @@ doc: DPLL subsystem.
     value: 10000
   -
     type: const
-    name: pin-frequency-77_5-khz
+    name: pin-frequency-77-5-khz
     value: 77500
   -
     type: const
-- 
2.49.0


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

* [PATCH net 05/10] netlink: specs: devlink: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (3 preceding siblings ...)
  2025-06-24 21:09 ` [PATCH net 04/10] netlink: specs: dpll: " Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-24 22:34   ` Jacob Keller
  2025-06-25  9:52   ` Donald Hunter
  2025-06-24 21:09 ` [PATCH net 06/10] netlink: specs: ovs_flow: " Jakub Kicinski
                   ` (5 subsequent siblings)
  10 siblings, 2 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	jiri, kalesh-anakkur.purayil, saeedm, jacob.e.keller

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: 429ac6211494 ("devlink: define enum for attr types of dynamic attributes")
Fixes: f2f9dd164db0 ("netlink: specs: devlink: add the remaining command to generate complete split_ops")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: jiri@resnulli.us
CC: kalesh-anakkur.purayil@broadcom.com
CC: saeedm@nvidia.com
CC: jacob.e.keller@intel.com
---
 Documentation/netlink/specs/devlink.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/netlink/specs/devlink.yaml b/Documentation/netlink/specs/devlink.yaml
index 05fee1b7fe19..38ddc04f9e6d 100644
--- a/Documentation/netlink/specs/devlink.yaml
+++ b/Documentation/netlink/specs/devlink.yaml
@@ -38,15 +38,15 @@ doc: Partial family for Devlink.
       -
         name: dsa
       -
-        name: pci_pf
+        name: pci-pf
       -
-        name: pci_vf
+        name: pci-vf
       -
         name: virtual
       -
         name: unused
       -
-        name: pci_sf
+        name: pci-sf
   -
     type: enum
     name: port-fn-state
@@ -220,7 +220,7 @@ doc: Partial family for Devlink.
       -
         name: flag
       -
-        name: nul_string
+        name: nul-string
         value: 10
       -
         name: binary
-- 
2.49.0


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

* [PATCH net 06/10] netlink: specs: ovs_flow: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (4 preceding siblings ...)
  2025-06-24 21:09 ` [PATCH net 05/10] netlink: specs: devlink: " Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-25  9:52   ` Donald Hunter
                     ` (2 more replies)
  2025-06-24 21:09 ` [PATCH net 07/10] netlink: specs: mptcp: " Jakub Kicinski
                   ` (4 subsequent siblings)
  10 siblings, 3 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	i.maximets, amorenoz, echaudro, michal.kubiak

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: 93b230b549bc ("netlink: specs: add ynl spec for ovs_flow")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: i.maximets@ovn.org
CC: amorenoz@redhat.com
CC: echaudro@redhat.com
CC: michal.kubiak@intel.com
---
 Documentation/netlink/specs/ovs_flow.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/netlink/specs/ovs_flow.yaml b/Documentation/netlink/specs/ovs_flow.yaml
index 46f5d1cd8a5f..7974aa7d8905 100644
--- a/Documentation/netlink/specs/ovs_flow.yaml
+++ b/Documentation/netlink/specs/ovs_flow.yaml
@@ -216,7 +216,7 @@ uapi-header: linux/openvswitch.h
     type: struct
     members:
       -
-        name: nd_target
+        name: nd-target
         type: binary
         len: 16
         byte-order: big-endian
@@ -258,12 +258,12 @@ uapi-header: linux/openvswitch.h
     type: struct
     members:
       -
-        name: vlan_tpid
+        name: vlan-tpid
         type: u16
         byte-order: big-endian
         doc: Tag protocol identifier (TPID) to push.
       -
-        name: vlan_tci
+        name: vlan-tci
         type: u16
         byte-order: big-endian
         doc: Tag control identifier (TCI) to push.
-- 
2.49.0


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

* [PATCH net 07/10] netlink: specs: mptcp: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (5 preceding siblings ...)
  2025-06-24 21:09 ` [PATCH net 06/10] netlink: specs: ovs_flow: " Jakub Kicinski
@ 2025-06-24 21:09 ` Jakub Kicinski
  2025-06-25  9:34   ` Davide Caratti
                     ` (2 more replies)
  2025-06-24 21:10 ` [PATCH net 08/10] netlink: specs: rt-link: " Jakub Kicinski
                   ` (3 subsequent siblings)
  10 siblings, 3 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:09 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	matttbe, martineau, geliang, dcaratti, mptcp

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for mptcp")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: matttbe@kernel.org
CC: martineau@kernel.org
CC: geliang@kernel.org
CC: donald.hunter@gmail.com
CC: dcaratti@redhat.com
CC: mptcp@lists.linux.dev
---
 Documentation/netlink/specs/mptcp_pm.yaml | 8 ++++----
 include/uapi/linux/mptcp_pm.h             | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Documentation/netlink/specs/mptcp_pm.yaml b/Documentation/netlink/specs/mptcp_pm.yaml
index dfd017780d2f..fb57860fe778 100644
--- a/Documentation/netlink/specs/mptcp_pm.yaml
+++ b/Documentation/netlink/specs/mptcp_pm.yaml
@@ -57,21 +57,21 @@ cmd-cnt-name: --mptcp-pm-cmd-after-last
       doc: >-
         A new subflow has been established. 'error' should not be set.
         Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 |
-        daddr6, sport, dport, backup, if_idx [, error].
+        daddr6, sport, dport, backup, if-idx [, error].
      -
       name: sub-closed
       doc: >-
         A subflow has been closed. An error (copy of sk_err) could be set if an
         error has been detected for this subflow.
         Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 |
-        daddr6, sport, dport, backup, if_idx [, error].
+        daddr6, sport, dport, backup, if-idx [, error].
      -
       name: sub-priority
       value: 13
       doc: >-
         The priority of a subflow has changed. 'error' should not be set.
         Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 |
-        daddr6, sport, dport, backup, if_idx [, error].
+        daddr6, sport, dport, backup, if-idx [, error].
      -
       name: listener-created
       value: 15
@@ -255,7 +255,7 @@ cmd-cnt-name: --mptcp-pm-cmd-after-last
         name: timeout
         type: u32
       -
-        name: if_idx
+        name: if-idx
         type: u32
       -
         name: reset-reason
diff --git a/include/uapi/linux/mptcp_pm.h b/include/uapi/linux/mptcp_pm.h
index 84fa8a21dfd0..6ac84b2f636c 100644
--- a/include/uapi/linux/mptcp_pm.h
+++ b/include/uapi/linux/mptcp_pm.h
@@ -27,14 +27,14 @@
  *   token, rem_id.
  * @MPTCP_EVENT_SUB_ESTABLISHED: A new subflow has been established. 'error'
  *   should not be set. Attributes: token, family, loc_id, rem_id, saddr4 |
- *   saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
+ *   saddr6, daddr4 | daddr6, sport, dport, backup, if-idx [, error].
  * @MPTCP_EVENT_SUB_CLOSED: A subflow has been closed. An error (copy of
  *   sk_err) could be set if an error has been detected for this subflow.
  *   Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 |
- *   daddr6, sport, dport, backup, if_idx [, error].
+ *   daddr6, sport, dport, backup, if-idx [, error].
  * @MPTCP_EVENT_SUB_PRIORITY: The priority of a subflow has changed. 'error'
  *   should not be set. Attributes: token, family, loc_id, rem_id, saddr4 |
- *   saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
+ *   saddr6, daddr4 | daddr6, sport, dport, backup, if-idx [, error].
  * @MPTCP_EVENT_LISTENER_CREATED: A new PM listener is created. Attributes:
  *   family, sport, saddr4 | saddr6.
  * @MPTCP_EVENT_LISTENER_CLOSED: A PM listener is closed. Attributes: family,
-- 
2.49.0


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

* [PATCH net 08/10] netlink: specs: rt-link: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (6 preceding siblings ...)
  2025-06-24 21:09 ` [PATCH net 07/10] netlink: specs: mptcp: " Jakub Kicinski
@ 2025-06-24 21:10 ` Jakub Kicinski
  2025-06-24 22:33   ` Jacob Keller
  2025-06-25  9:54   ` Donald Hunter
  2025-06-24 21:10 ` [PATCH net 09/10] netlink: specs: tc: " Jakub Kicinski
                   ` (2 subsequent siblings)
  10 siblings, 2 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:10 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	jacob.e.keller

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: b2f63d904e72 ("doc/netlink: Add spec for rt link messages")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: jacob.e.keller@intel.com
---
 Documentation/netlink/specs/rt-link.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml
index b41b31eebcae..28c4cf66517c 100644
--- a/Documentation/netlink/specs/rt-link.yaml
+++ b/Documentation/netlink/specs/rt-link.yaml
@@ -603,7 +603,7 @@ protonum: 0
         name: optmask
         type: u32
   -
-    name: if_stats_msg
+    name: if-stats-msg
     type: struct
     members:
       -
@@ -2486,7 +2486,7 @@ protonum: 0
       name: getstats
       doc: Get / dump link stats.
       attribute-set: stats-attrs
-      fixed-header: if_stats_msg
+      fixed-header: if-stats-msg
       do:
         request:
           value: 94
-- 
2.49.0


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

* [PATCH net 09/10] netlink: specs: tc: replace underscores with dashes in names
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (7 preceding siblings ...)
  2025-06-24 21:10 ` [PATCH net 08/10] netlink: specs: rt-link: " Jakub Kicinski
@ 2025-06-24 21:10 ` Jakub Kicinski
  2025-06-25  9:54   ` Donald Hunter
  2025-06-24 21:10 ` [PATCH net 10/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
  2025-06-25 22:50 ` [PATCH net 00/10] " patchwork-bot+netdevbpf
  10 siblings, 1 reply; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:10 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	ast

We're trying to add a strict regexp for the name format in the spec.
Underscores will not be allowed, dashes should be used instead.
This makes no difference to C (codegen, if used, replaces special
chars in names) but it gives more uniform naming in Python.

Fixes: a1bcfde83669 ("doc/netlink/specs: Add a spec for tc")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: ast@fiberby.net
---
 Documentation/netlink/specs/tc.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/netlink/specs/tc.yaml b/Documentation/netlink/specs/tc.yaml
index cb7ea7d62e56..42d74c9aeb54 100644
--- a/Documentation/netlink/specs/tc.yaml
+++ b/Documentation/netlink/specs/tc.yaml
@@ -232,7 +232,7 @@ protonum: 0
         type: u8
         doc: log(P_max / (qth-max - qth-min))
       -
-        name: Scell_log
+        name: Scell-log
         type: u8
         doc: cell size for idle damping
       -
@@ -253,7 +253,7 @@ protonum: 0
         name: DPs
         type: u32
       -
-        name: def_DP
+        name: def-DP
         type: u32
       -
         name: grio
-- 
2.49.0


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

* [PATCH net 10/10] netlink: specs: enforce strict naming of properties
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (8 preceding siblings ...)
  2025-06-24 21:10 ` [PATCH net 09/10] netlink: specs: tc: " Jakub Kicinski
@ 2025-06-24 21:10 ` Jakub Kicinski
  2025-06-25 10:05   ` Donald Hunter
  2025-06-25 22:50 ` [PATCH net 00/10] " patchwork-bot+netdevbpf
  10 siblings, 1 reply; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 21:10 UTC (permalink / raw)
  To: davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski

Add a regexp to make sure all names which may end up being visible
to the user consist of lower case characters, numbers and dashes.
Underscores keep sneaking into the specs, which is not visible
in the C code but makes the Python and alike inconsistent.

Note that starting with a number is okay, as in C the full
name will include the family name.

For legacy families we can't enforce the naming in the family
name or the multicast group names, as these are part of the
binary uAPI of the kernel.

For classic netlink we need to allow capital letters in names
of struct members. TC has some structs with capitalized members.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
 Documentation/netlink/genetlink-legacy.yaml | 15 +++++++++------
 Documentation/netlink/genetlink.yaml        | 17 ++++++++++-------
 Documentation/netlink/netlink-raw.yaml      | 18 ++++++++++++------
 3 files changed, 31 insertions(+), 19 deletions(-)

diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml
index 4cbfe666e6f5..b29d62eefa16 100644
--- a/Documentation/netlink/genetlink-legacy.yaml
+++ b/Documentation/netlink/genetlink-legacy.yaml
@@ -6,6 +6,9 @@ $schema: https://json-schema.org/draft-07/schema
 
 # Common defines
 $defs:
+  name:
+    type: string
+    pattern: ^[0-9a-z-]+$
   uint:
     type: integer
     minimum: 0
@@ -76,7 +79,7 @@ additionalProperties: False
       additionalProperties: False
       properties:
         name:
-          type: string
+          $ref: '#/$defs/name'
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
@@ -103,7 +106,7 @@ additionalProperties: False
                 additionalProperties: False
                 properties:
                   name:
-                    type: string
+                    $ref: '#/$defs/name'
                   value:
                     type: integer
                   doc:
@@ -132,7 +135,7 @@ additionalProperties: False
             additionalProperties: False
             properties:
               name:
-                type: string
+                $ref: '#/$defs/name'
               type:
                 description: The netlink attribute type
                 enum: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary ]
@@ -169,7 +172,7 @@ additionalProperties: False
         name:
           description: |
             Name used when referring to this space in other definitions, not used outside of the spec.
-          type: string
+          $ref: '#/$defs/name'
         name-prefix:
           description: |
             Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
@@ -206,7 +209,7 @@ additionalProperties: False
             additionalProperties: False
             properties:
               name:
-                type: string
+                $ref: '#/$defs/name'
               type: &attr-type
                 description: The netlink attribute type
                 enum: [ unused, pad, flag, binary, bitfield32,
@@ -348,7 +351,7 @@ additionalProperties: False
           properties:
             name:
               description: Name of the operation, also defining its C enum value in uAPI.
-              type: string
+              $ref: '#/$defs/name'
             doc:
               description: Documentation for the command.
               type: string
diff --git a/Documentation/netlink/genetlink.yaml b/Documentation/netlink/genetlink.yaml
index 40efbbad76ab..7b1ec153e834 100644
--- a/Documentation/netlink/genetlink.yaml
+++ b/Documentation/netlink/genetlink.yaml
@@ -6,6 +6,9 @@ $schema: https://json-schema.org/draft-07/schema
 
 # Common defines
 $defs:
+  name:
+    type: string
+    pattern: ^[0-9a-z-]+$
   uint:
     type: integer
     minimum: 0
@@ -29,7 +32,7 @@ additionalProperties: False
 properties:
   name:
     description: Name of the genetlink family.
-    type: string
+    $ref: '#/$defs/name'
   doc:
     type: string
   protocol:
@@ -48,7 +51,7 @@ additionalProperties: False
       additionalProperties: False
       properties:
         name:
-          type: string
+          $ref: '#/$defs/name'
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
@@ -75,7 +78,7 @@ additionalProperties: False
                 additionalProperties: False
                 properties:
                   name:
-                    type: string
+                    $ref: '#/$defs/name'
                   value:
                     type: integer
                   doc:
@@ -96,7 +99,7 @@ additionalProperties: False
         name:
           description: |
             Name used when referring to this space in other definitions, not used outside of the spec.
-          type: string
+          $ref: '#/$defs/name'
         name-prefix:
           description: |
             Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
@@ -121,7 +124,7 @@ additionalProperties: False
             additionalProperties: False
             properties:
               name:
-                type: string
+                $ref: '#/$defs/name'
               type: &attr-type
                 enum: [ unused, pad, flag, binary,
                         uint, sint, u8, u16, u32, u64, s8, s16, s32, s64,
@@ -243,7 +246,7 @@ additionalProperties: False
           properties:
             name:
               description: Name of the operation, also defining its C enum value in uAPI.
-              type: string
+              $ref: '#/$defs/name'
             doc:
               description: Documentation for the command.
               type: string
@@ -327,7 +330,7 @@ additionalProperties: False
             name:
               description: |
                 The name for the group, used to form the define and the value of the define.
-              type: string
+              $ref: '#/$defs/name'
             flags: *cmd_flags
 
   kernel-family:
diff --git a/Documentation/netlink/netlink-raw.yaml b/Documentation/netlink/netlink-raw.yaml
index e34bf23897fa..246fa07bccf6 100644
--- a/Documentation/netlink/netlink-raw.yaml
+++ b/Documentation/netlink/netlink-raw.yaml
@@ -6,6 +6,12 @@ $schema: https://json-schema.org/draft-07/schema
 
 # Common defines
 $defs:
+  name:
+    type: string
+    pattern: ^[0-9a-z-]+$
+  name-cap:
+    type: string
+    pattern: ^[0-9a-zA-Z-]+$
   uint:
     type: integer
     minimum: 0
@@ -71,7 +77,7 @@ additionalProperties: False
       additionalProperties: False
       properties:
         name:
-          type: string
+          $ref: '#/$defs/name'
         header:
           description: For C-compatible languages, header which already defines this value.
           type: string
@@ -98,7 +104,7 @@ additionalProperties: False
                 additionalProperties: False
                 properties:
                   name:
-                    type: string
+                    $ref: '#/$defs/name'
                   value:
                     type: integer
                   doc:
@@ -124,7 +130,7 @@ additionalProperties: False
             additionalProperties: False
             properties:
               name:
-                type: string
+                $ref: '#/$defs/name-cap'
               type:
                 description: |
                   The netlink attribute type. Members of type 'binary' or 'pad'
@@ -183,7 +189,7 @@ additionalProperties: False
         name:
           description: |
             Name used when referring to this space in other definitions, not used outside of the spec.
-          type: string
+          $ref: '#/$defs/name'
         name-prefix:
           description: |
             Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
@@ -220,7 +226,7 @@ additionalProperties: False
             additionalProperties: False
             properties:
               name:
-                type: string
+                $ref: '#/$defs/name'
               type: &attr-type
                 description: The netlink attribute type
                 enum: [ unused, pad, flag, binary, bitfield32,
@@ -408,7 +414,7 @@ additionalProperties: False
           properties:
             name:
               description: Name of the operation, also defining its C enum value in uAPI.
-              type: string
+              $ref: '#/$defs/name'
             doc:
               description: Documentation for the command.
               type: string
-- 
2.49.0


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

* Re: [PATCH net 08/10] netlink: specs: rt-link: replace underscores with dashes in names
  2025-06-24 21:10 ` [PATCH net 08/10] netlink: specs: rt-link: " Jakub Kicinski
@ 2025-06-24 22:33   ` Jacob Keller
  2025-06-25  9:54   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Jacob Keller @ 2025-06-24 22:33 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms



On 6/24/2025 2:10 PM, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: b2f63d904e72 ("doc/netlink: Add spec for rt link messages")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: jacob.e.keller@intel.com
> ---
>  Documentation/netlink/specs/rt-link.yaml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml
> index b41b31eebcae..28c4cf66517c 100644
> --- a/Documentation/netlink/specs/rt-link.yaml
> +++ b/Documentation/netlink/specs/rt-link.yaml
> @@ -603,7 +603,7 @@ protonum: 0
>          name: optmask
>          type: u32
>    -
> -    name: if_stats_msg
> +    name: if-stats-msg
>      type: struct
>      members:
>        -
> @@ -2486,7 +2486,7 @@ protonum: 0
>        name: getstats
>        doc: Get / dump link stats.
>        attribute-set: stats-attrs
> -      fixed-header: if_stats_msg
> +      fixed-header: if-stats-msg
>        do:
>          request:
>            value: 94

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>

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

* Re: [PATCH net 05/10] netlink: specs: devlink: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 05/10] netlink: specs: devlink: " Jakub Kicinski
@ 2025-06-24 22:34   ` Jacob Keller
  2025-06-25  9:52   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Jacob Keller @ 2025-06-24 22:34 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, jiri,
	kalesh-anakkur.purayil, saeedm



On 6/24/2025 2:09 PM, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: 429ac6211494 ("devlink: define enum for attr types of dynamic attributes")
> Fixes: f2f9dd164db0 ("netlink: specs: devlink: add the remaining command to generate complete split_ops")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: jiri@resnulli.us
> CC: kalesh-anakkur.purayil@broadcom.com
> CC: saeedm@nvidia.com
> CC: jacob.e.keller@intel.com
> ---
>  Documentation/netlink/specs/devlink.yaml | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/netlink/specs/devlink.yaml b/Documentation/netlink/specs/devlink.yaml
> index 05fee1b7fe19..38ddc04f9e6d 100644
> --- a/Documentation/netlink/specs/devlink.yaml
> +++ b/Documentation/netlink/specs/devlink.yaml
> @@ -38,15 +38,15 @@ doc: Partial family for Devlink.
>        -
>          name: dsa
>        -
> -        name: pci_pf
> +        name: pci-pf
>        -
> -        name: pci_vf
> +        name: pci-vf
>        -
>          name: virtual
>        -
>          name: unused
>        -
> -        name: pci_sf
> +        name: pci-sf
>    -
>      type: enum
>      name: port-fn-state
> @@ -220,7 +220,7 @@ doc: Partial family for Devlink.
>        -
>          name: flag
>        -
> -        name: nul_string
> +        name: nul-string
>          value: 10
>        -
>          name: binary


Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>

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

* Re: [PATCH net 04/10] netlink: specs: dpll: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 04/10] netlink: specs: dpll: " Jakub Kicinski
@ 2025-06-24 22:58   ` Vadim Fedorenko
  2025-06-25  9:52   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Vadim Fedorenko @ 2025-06-24 22:58 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, jiri,
	arkadiusz.kubalewski, aleksandr.loktionov, michal.michalik

On 24/06/2025 22:09, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: 3badff3a25d8 ("dpll: spec: Add Netlink spec in YAML")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: jiri@resnulli.us
> CC: arkadiusz.kubalewski@intel.com
> CC: aleksandr.loktionov@intel.com
> CC: michal.michalik@intel.com
> CC: vadim.fedorenko@linux.dev
> ---
>   Documentation/netlink/specs/dpll.yaml | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/netlink/specs/dpll.yaml b/Documentation/netlink/specs/dpll.yaml
> index 8feefeae5376..f434140b538e 100644
> --- a/Documentation/netlink/specs/dpll.yaml
> +++ b/Documentation/netlink/specs/dpll.yaml
> @@ -188,7 +188,7 @@ doc: DPLL subsystem.
>       value: 10000
>     -
>       type: const
> -    name: pin-frequency-77_5-khz
> +    name: pin-frequency-77-5-khz
>       value: 77500
>     -
>       type: const

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>

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

* Re: [PATCH net 03/10] netlink: specs: ethtool: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 03/10] netlink: specs: ethtool: " Jakub Kicinski
@ 2025-06-24 23:07   ` Kory Maincent
  2025-06-24 23:14     ` Jakub Kicinski
  2025-06-25  9:51   ` Donald Hunter
  1 sibling, 1 reply; 33+ messages in thread
From: Kory Maincent @ 2025-06-24 23:07 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, donald.hunter, netdev, edumazet, pabeni, andrew+netdev,
	horms, andrew, shuah, sdf, gal, noren, ahmed.zaki,
	wojciech.drewek, petrm, danieller, linux-kselftest

Le Tue, 24 Jun 2025 14:09:55 -0700,
Jakub Kicinski <kuba@kernel.org> a écrit :

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen replaces special chars in names)
> but gives more uniform naming in Python.
 
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

Thank you!

> Fixes: 13e59344fb9d ("net: ethtool: add support for symmetric-xor RSS hash")
> Fixes: 46fb3ba95b93 ("ethtool: Add an interface for flashing transceiver
> modules' firmware") 

Why do you use fixes tag? You are not fixing something broken but standardizing
the python naming.

Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

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

* Re: [PATCH net 03/10] netlink: specs: ethtool: replace underscores with dashes in names
  2025-06-24 23:07   ` Kory Maincent
@ 2025-06-24 23:14     ` Jakub Kicinski
  0 siblings, 0 replies; 33+ messages in thread
From: Jakub Kicinski @ 2025-06-24 23:14 UTC (permalink / raw)
  To: Kory Maincent
  Cc: davem, donald.hunter, netdev, edumazet, pabeni, andrew+netdev,
	horms, andrew, shuah, sdf, gal, noren, ahmed.zaki,
	wojciech.drewek, petrm, danieller, linux-kselftest

On Wed, 25 Jun 2025 01:07:15 +0200 Kory Maincent wrote:
> > Fixes: 13e59344fb9d ("net: ethtool: add support for symmetric-xor RSS hash")
> > Fixes: 46fb3ba95b93 ("ethtool: Add an interface for flashing transceiver
> > modules' firmware")   
> 
> Why do you use fixes tag? You are not fixing something broken but standardizing
> the python naming.

To direct them within stable releases. I think it's worth pushing
this change into 6.12 LTS in case someone packages YNL out of there.
One could argue this is a breaking change for Python users.

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

* Re: [PATCH net 07/10] netlink: specs: mptcp: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 07/10] netlink: specs: mptcp: " Jakub Kicinski
@ 2025-06-25  9:34   ` Davide Caratti
  2025-06-25  9:53   ` Donald Hunter
  2025-06-25 12:07   ` Matthieu Baerts
  2 siblings, 0 replies; 33+ messages in thread
From: Davide Caratti @ 2025-06-25  9:34 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, donald.hunter, netdev, edumazet, pabeni, andrew+netdev,
	horms, matttbe, martineau, geliang, mptcp

On Tue, Jun 24, 2025 at 02:09:59PM -0700, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for mptcp")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: matttbe@kernel.org
> CC: martineau@kernel.org
> CC: geliang@kernel.org
> CC: donald.hunter@gmail.com
> CC: dcaratti@redhat.com
> CC: mptcp@lists.linux.dev

Reviewed-by: Davide Caratti <dcaratti@redhat.com>


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

* Re: [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
@ 2025-06-25  9:49   ` Donald Hunter
  2025-06-25 11:35   ` Jeff Layton
  2025-06-26 12:58   ` Chuck Lever
  2 siblings, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:49 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
	chuck.lever, jlayton, lorenzo

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: 13727f85b49b ("NFSD: introduce netlink stubs")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 02/10] netlink: specs: fou: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 02/10] netlink: specs: fou: " Jakub Kicinski
@ 2025-06-25  9:51   ` Donald Hunter
  0 siblings, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:51 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, sdf

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: 4eb77b4ecd3c ("netlink: add a proto specification for FOU")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 03/10] netlink: specs: ethtool: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 03/10] netlink: specs: ethtool: " Jakub Kicinski
  2025-06-24 23:07   ` Kory Maincent
@ 2025-06-25  9:51   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:51 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, andrew,
	shuah, kory.maincent, sdf, gal, noren, ahmed.zaki,
	wojciech.drewek, petrm, danieller, linux-kselftest

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen replaces special chars in names)
> but gives more uniform naming in Python.
>
> Fixes: 13e59344fb9d ("net: ethtool: add support for symmetric-xor RSS hash")
> Fixes: 46fb3ba95b93 ("ethtool: Add an interface for flashing transceiver modules' firmware")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 04/10] netlink: specs: dpll: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 04/10] netlink: specs: dpll: " Jakub Kicinski
  2025-06-24 22:58   ` Vadim Fedorenko
@ 2025-06-25  9:52   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:52 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, jiri,
	arkadiusz.kubalewski, aleksandr.loktionov, michal.michalik,
	vadim.fedorenko

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: 3badff3a25d8 ("dpll: spec: Add Netlink spec in YAML")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 05/10] netlink: specs: devlink: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 05/10] netlink: specs: devlink: " Jakub Kicinski
  2025-06-24 22:34   ` Jacob Keller
@ 2025-06-25  9:52   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:52 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, jiri,
	kalesh-anakkur.purayil, saeedm, jacob.e.keller

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: 429ac6211494 ("devlink: define enum for attr types of dynamic attributes")
> Fixes: f2f9dd164db0 ("netlink: specs: devlink: add the remaining command to generate complete split_ops")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 06/10] netlink: specs: ovs_flow: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 06/10] netlink: specs: ovs_flow: " Jakub Kicinski
@ 2025-06-25  9:52   ` Donald Hunter
  2025-06-25 10:15   ` Ilya Maximets
  2025-06-25 11:21   ` Eelco Chaudron
  2 siblings, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:52 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, i.maximets,
	amorenoz, echaudro, michal.kubiak

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: 93b230b549bc ("netlink: specs: add ynl spec for ovs_flow")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 07/10] netlink: specs: mptcp: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 07/10] netlink: specs: mptcp: " Jakub Kicinski
  2025-06-25  9:34   ` Davide Caratti
@ 2025-06-25  9:53   ` Donald Hunter
  2025-06-25 12:07   ` Matthieu Baerts
  2 siblings, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:53 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, matttbe,
	martineau, geliang, dcaratti, mptcp

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for mptcp")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 08/10] netlink: specs: rt-link: replace underscores with dashes in names
  2025-06-24 21:10 ` [PATCH net 08/10] netlink: specs: rt-link: " Jakub Kicinski
  2025-06-24 22:33   ` Jacob Keller
@ 2025-06-25  9:54   ` Donald Hunter
  1 sibling, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:54 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
	jacob.e.keller

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: b2f63d904e72 ("doc/netlink: Add spec for rt link messages")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 09/10] netlink: specs: tc: replace underscores with dashes in names
  2025-06-24 21:10 ` [PATCH net 09/10] netlink: specs: tc: " Jakub Kicinski
@ 2025-06-25  9:54   ` Donald Hunter
  0 siblings, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25  9:54 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, ast

Jakub Kicinski <kuba@kernel.org> writes:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: a1bcfde83669 ("doc/netlink/specs: Add a spec for tc")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 10/10] netlink: specs: enforce strict naming of properties
  2025-06-24 21:10 ` [PATCH net 10/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
@ 2025-06-25 10:05   ` Donald Hunter
  0 siblings, 0 replies; 33+ messages in thread
From: Donald Hunter @ 2025-06-25 10:05 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms

Jakub Kicinski <kuba@kernel.org> writes:

> Add a regexp to make sure all names which may end up being visible
> to the user consist of lower case characters, numbers and dashes.
> Underscores keep sneaking into the specs, which is not visible
> in the C code but makes the Python and alike inconsistent.
>
> Note that starting with a number is okay, as in C the full
> name will include the family name.
>
> For legacy families we can't enforce the naming in the family
> name or the multicast group names, as these are part of the
> binary uAPI of the kernel.
>
> For classic netlink we need to allow capital letters in names
> of struct members. TC has some structs with capitalized members.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>

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

* Re: [PATCH net 06/10] netlink: specs: ovs_flow: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 06/10] netlink: specs: ovs_flow: " Jakub Kicinski
  2025-06-25  9:52   ` Donald Hunter
@ 2025-06-25 10:15   ` Ilya Maximets
  2025-06-25 11:21   ` Eelco Chaudron
  2 siblings, 0 replies; 33+ messages in thread
From: Ilya Maximets @ 2025-06-25 10:15 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: i.maximets, netdev, edumazet, pabeni, andrew+netdev, horms,
	amorenoz, echaudro, michal.kubiak

On 6/24/25 11:09 PM, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: 93b230b549bc ("netlink: specs: add ynl spec for ovs_flow")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: i.maximets@ovn.org
> CC: amorenoz@redhat.com
> CC: echaudro@redhat.com
> CC: michal.kubiak@intel.com
> ---
>  Documentation/netlink/specs/ovs_flow.yaml | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/netlink/specs/ovs_flow.yaml b/Documentation/netlink/specs/ovs_flow.yaml
> index 46f5d1cd8a5f..7974aa7d8905 100644
> --- a/Documentation/netlink/specs/ovs_flow.yaml
> +++ b/Documentation/netlink/specs/ovs_flow.yaml
> @@ -216,7 +216,7 @@ uapi-header: linux/openvswitch.h
>      type: struct
>      members:
>        -
> -        name: nd_target
> +        name: nd-target
>          type: binary
>          len: 16
>          byte-order: big-endian
> @@ -258,12 +258,12 @@ uapi-header: linux/openvswitch.h
>      type: struct
>      members:
>        -
> -        name: vlan_tpid
> +        name: vlan-tpid
>          type: u16
>          byte-order: big-endian
>          doc: Tag protocol identifier (TPID) to push.
>        -
> -        name: vlan_tci
> +        name: vlan-tci
>          type: u16
>          byte-order: big-endian
>          doc: Tag control identifier (TCI) to push.

This makes naming consistent across the attributes, which is good.

Reviewed-by: Ilya Maximets <i.maximets@ovn.org>

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

* Re: [PATCH net 06/10] netlink: specs: ovs_flow: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 06/10] netlink: specs: ovs_flow: " Jakub Kicinski
  2025-06-25  9:52   ` Donald Hunter
  2025-06-25 10:15   ` Ilya Maximets
@ 2025-06-25 11:21   ` Eelco Chaudron
  2 siblings, 0 replies; 33+ messages in thread
From: Eelco Chaudron @ 2025-06-25 11:21 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, donald.hunter, netdev, edumazet, pabeni, andrew+netdev,
	horms, i.maximets, amorenoz, michal.kubiak



On 24 Jun 2025, at 23:09, Jakub Kicinski wrote:

> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
>
> Fixes: 93b230b549bc ("netlink: specs: add ynl spec for ovs_flow")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: i.maximets@ovn.org
> CC: amorenoz@redhat.com
> CC: echaudro@redhat.com
> CC: michal.kubiak@intel.com
> ---

The change makes sense to me.

Reviewed-by: Eelco Chaudron <echaudro@redhat.com>


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

* Re: [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
  2025-06-25  9:49   ` Donald Hunter
@ 2025-06-25 11:35   ` Jeff Layton
  2025-06-26 12:58   ` Chuck Lever
  2 siblings, 0 replies; 33+ messages in thread
From: Jeff Layton @ 2025-06-25 11:35 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, chuck.lever,
	lorenzo

On Tue, 2025-06-24 at 14:09 -0700, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: 13727f85b49b ("NFSD: introduce netlink stubs")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: chuck.lever@oracle.com
> CC: jlayton@kernel.org
> CC: lorenzo@kernel.org
> ---
>  Documentation/netlink/specs/nfsd.yaml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/netlink/specs/nfsd.yaml b/Documentation/netlink/specs/nfsd.yaml
> index c87658114852..8d1a3c01708f 100644
> --- a/Documentation/netlink/specs/nfsd.yaml
> +++ b/Documentation/netlink/specs/nfsd.yaml
> @@ -27,7 +27,7 @@ doc: NFSD configuration over generic netlink.
>          name: proc
>          type: u32
>        -
> -        name: service_time
> +        name: service-time
>          type: s64
>        -
>          name: pad
> @@ -139,7 +139,7 @@ doc: NFSD configuration over generic netlink.
>              - prog
>              - version
>              - proc
> -            - service_time
> +            - service-time
>              - saddr4
>              - daddr4
>              - saddr6

Reviewed-by: Jeff Layton <jlayton@kernel.org>

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

* Re: [PATCH net 07/10] netlink: specs: mptcp: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 07/10] netlink: specs: mptcp: " Jakub Kicinski
  2025-06-25  9:34   ` Davide Caratti
  2025-06-25  9:53   ` Donald Hunter
@ 2025-06-25 12:07   ` Matthieu Baerts
  2 siblings, 0 replies; 33+ messages in thread
From: Matthieu Baerts @ 2025-06-25 12:07 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, martineau,
	geliang, dcaratti, mptcp

Hi Jakub,

On 24/06/2025 23:09, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for mptcp")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Thank you! Looks good to me!

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


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

* Re: [PATCH net 00/10] netlink: specs: enforce strict naming of properties
  2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
                   ` (9 preceding siblings ...)
  2025-06-24 21:10 ` [PATCH net 10/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
@ 2025-06-25 22:50 ` patchwork-bot+netdevbpf
  10 siblings, 0 replies; 33+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-25 22:50 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, donald.hunter, netdev, edumazet, pabeni, andrew+netdev,
	horms

Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 24 Jun 2025 14:09:52 -0700 you wrote:
> I got annoyed once again by the name properties in the ethtool spec
> which use underscore instead of dash. I previously assumed that there
> is a lot of such properties in the specs so fixing them now would
> be near impossible. On a closer look, however, I only found 22
> (rough grep suggests we have ~4.8k names in the specs, so bad ones
> are just 0.46%).
> 
> [...]

Here is the summary with links:
  - [net,01/10] netlink: specs: nfsd: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/2434ccb94dfc
  - [net,02/10] netlink: specs: fou: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/791a9ed0a40d
  - [net,03/10] netlink: specs: ethtool: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/07caaf875c93
  - [net,04/10] netlink: specs: dpll: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/354592f19c7b
  - [net,05/10] netlink: specs: devlink: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/940768094514
  - [net,06/10] netlink: specs: ovs_flow: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/e40d3d0931d2
  - [net,07/10] netlink: specs: mptcp: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/9e6dd4c256d0
  - [net,08/10] netlink: specs: rt-link: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/8d7e211ea925
  - [net,09/10] netlink: specs: tc: replace underscores with dashes in names
    https://git.kernel.org/netdev/net/c/eef0eaeca7fa
  - [net,10/10] netlink: specs: enforce strict naming of properties
    https://git.kernel.org/netdev/net/c/af852f1f1c95

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] 33+ messages in thread

* Re: [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names
  2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
  2025-06-25  9:49   ` Donald Hunter
  2025-06-25 11:35   ` Jeff Layton
@ 2025-06-26 12:58   ` Chuck Lever
  2 siblings, 0 replies; 33+ messages in thread
From: Chuck Lever @ 2025-06-26 12:58 UTC (permalink / raw)
  To: Jakub Kicinski, davem, donald.hunter
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, jlayton, lorenzo

On 6/24/25 5:09 PM, Jakub Kicinski wrote:
> We're trying to add a strict regexp for the name format in the spec.
> Underscores will not be allowed, dashes should be used instead.
> This makes no difference to C (codegen, if used, replaces special
> chars in names) but it gives more uniform naming in Python.
> 
> Fixes: 13727f85b49b ("NFSD: introduce netlink stubs")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: donald.hunter@gmail.com
> CC: chuck.lever@oracle.com
> CC: jlayton@kernel.org
> CC: lorenzo@kernel.org
> ---
>  Documentation/netlink/specs/nfsd.yaml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/netlink/specs/nfsd.yaml b/Documentation/netlink/specs/nfsd.yaml
> index c87658114852..8d1a3c01708f 100644
> --- a/Documentation/netlink/specs/nfsd.yaml
> +++ b/Documentation/netlink/specs/nfsd.yaml
> @@ -27,7 +27,7 @@ doc: NFSD configuration over generic netlink.
>          name: proc
>          type: u32
>        -
> -        name: service_time
> +        name: service-time
>          type: s64
>        -
>          name: pad
> @@ -139,7 +139,7 @@ doc: NFSD configuration over generic netlink.
>              - prog
>              - version
>              - proc
> -            - service_time
> +            - service-time
>              - saddr4
>              - daddr4
>              - saddr6

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>


-- 
Chuck Lever

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

end of thread, other threads:[~2025-06-26 12:59 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 21:09 [PATCH net 00/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
2025-06-24 21:09 ` [PATCH net 01/10] netlink: specs: nfsd: replace underscores with dashes in names Jakub Kicinski
2025-06-25  9:49   ` Donald Hunter
2025-06-25 11:35   ` Jeff Layton
2025-06-26 12:58   ` Chuck Lever
2025-06-24 21:09 ` [PATCH net 02/10] netlink: specs: fou: " Jakub Kicinski
2025-06-25  9:51   ` Donald Hunter
2025-06-24 21:09 ` [PATCH net 03/10] netlink: specs: ethtool: " Jakub Kicinski
2025-06-24 23:07   ` Kory Maincent
2025-06-24 23:14     ` Jakub Kicinski
2025-06-25  9:51   ` Donald Hunter
2025-06-24 21:09 ` [PATCH net 04/10] netlink: specs: dpll: " Jakub Kicinski
2025-06-24 22:58   ` Vadim Fedorenko
2025-06-25  9:52   ` Donald Hunter
2025-06-24 21:09 ` [PATCH net 05/10] netlink: specs: devlink: " Jakub Kicinski
2025-06-24 22:34   ` Jacob Keller
2025-06-25  9:52   ` Donald Hunter
2025-06-24 21:09 ` [PATCH net 06/10] netlink: specs: ovs_flow: " Jakub Kicinski
2025-06-25  9:52   ` Donald Hunter
2025-06-25 10:15   ` Ilya Maximets
2025-06-25 11:21   ` Eelco Chaudron
2025-06-24 21:09 ` [PATCH net 07/10] netlink: specs: mptcp: " Jakub Kicinski
2025-06-25  9:34   ` Davide Caratti
2025-06-25  9:53   ` Donald Hunter
2025-06-25 12:07   ` Matthieu Baerts
2025-06-24 21:10 ` [PATCH net 08/10] netlink: specs: rt-link: " Jakub Kicinski
2025-06-24 22:33   ` Jacob Keller
2025-06-25  9:54   ` Donald Hunter
2025-06-24 21:10 ` [PATCH net 09/10] netlink: specs: tc: " Jakub Kicinski
2025-06-25  9:54   ` Donald Hunter
2025-06-24 21:10 ` [PATCH net 10/10] netlink: specs: enforce strict naming of properties Jakub Kicinski
2025-06-25 10:05   ` Donald Hunter
2025-06-25 22:50 ` [PATCH net 00/10] " 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).