Skip to content

Commit 3172bcf

Browse files
committed
netlink: specs: devlink: replace underscores with dashes in names
JIRA: https://issues.redhat.com/browse/RHEL-105064 commit 9407680 Author: Jakub Kicinski <kuba@kernel.org> Date: Tue Jun 24 14:09:57 2025 -0700 netlink: specs: devlink: replace underscores with dashes in names 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: 429ac62 ("devlink: define enum for attr types of dynamic attributes") Fixes: f2f9dd1 ("netlink: specs: devlink: add the remaining command to generate complete split_ops") Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Donald Hunter <donald.hunter@gmail.com> Link: https://patch.msgid.link/20250624211002.3475021-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
1 parent a6ee1b3 commit 3172bcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/netlink/specs/devlink.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ definitions:
3838
-
3939
name: dsa
4040
-
41-
name: pci_pf
41+
name: pci-pf
4242
-
43-
name: pci_vf
43+
name: pci-vf
4444
-
4545
name: virtual
4646
-
4747
name: unused
4848
-
49-
name: pci_sf
49+
name: pci-sf
5050
-
5151
type: enum
5252
name: port-fn-state
@@ -220,7 +220,7 @@ definitions:
220220
-
221221
name: flag
222222
-
223-
name: nul_string
223+
name: nul-string
224224
value: 10
225225
-
226226
name: binary

0 commit comments

Comments
 (0)