Skip to content

Commit 9407680

Browse files
committed
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 <[email protected]> Reviewed-by: Donald Hunter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 354592f commit 9407680

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)