Skip to content

Commit 791a9ed

Browse files
committed
netlink: specs: fou: 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: 4eb77b4 ("netlink: add a proto specification for FOU") Reviewed-by: Donald Hunter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2434ccb commit 791a9ed

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Documentation/netlink/specs/fou.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ kernel-policy: global
1515
definitions:
1616
-
1717
type: enum
18-
name: encap_type
18+
name: encap-type
1919
name-prefix: fou-encap-
2020
enum-name:
2121
entries: [ unspec, direct, gue ]
@@ -43,26 +43,26 @@ attribute-sets:
4343
name: type
4444
type: u8
4545
-
46-
name: remcsum_nopartial
46+
name: remcsum-nopartial
4747
type: flag
4848
-
49-
name: local_v4
49+
name: local-v4
5050
type: u32
5151
-
52-
name: local_v6
52+
name: local-v6
5353
type: binary
5454
checks:
5555
min-len: 16
5656
-
57-
name: peer_v4
57+
name: peer-v4
5858
type: u32
5959
-
60-
name: peer_v6
60+
name: peer-v6
6161
type: binary
6262
checks:
6363
min-len: 16
6464
-
65-
name: peer_port
65+
name: peer-port
6666
type: u16
6767
byte-order: big-endian
6868
-
@@ -90,12 +90,12 @@ operations:
9090
- port
9191
- ipproto
9292
- type
93-
- remcsum_nopartial
94-
- local_v4
95-
- peer_v4
96-
- local_v6
97-
- peer_v6
98-
- peer_port
93+
- remcsum-nopartial
94+
- local-v4
95+
- peer-v4
96+
- local-v6
97+
- peer-v6
98+
- peer-port
9999
- ifindex
100100

101101
-
@@ -112,11 +112,11 @@ operations:
112112
- af
113113
- ifindex
114114
- port
115-
- peer_port
116-
- local_v4
117-
- peer_v4
118-
- local_v6
119-
- peer_v6
115+
- peer-port
116+
- local-v4
117+
- peer-v4
118+
- local-v6
119+
- peer-v6
120120

121121
-
122122
name: get

0 commit comments

Comments
 (0)