mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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: 4eb77b4ecd
("netlink: add a proto specification for FOU")
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250624211002.3475021-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
2434ccb94d
commit
791a9ed0a4
1 changed files with 18 additions and 18 deletions
|
@ -15,7 +15,7 @@ kernel-policy: global
|
||||||
definitions:
|
definitions:
|
||||||
-
|
-
|
||||||
type: enum
|
type: enum
|
||||||
name: encap_type
|
name: encap-type
|
||||||
name-prefix: fou-encap-
|
name-prefix: fou-encap-
|
||||||
enum-name:
|
enum-name:
|
||||||
entries: [ unspec, direct, gue ]
|
entries: [ unspec, direct, gue ]
|
||||||
|
@ -43,26 +43,26 @@ attribute-sets:
|
||||||
name: type
|
name: type
|
||||||
type: u8
|
type: u8
|
||||||
-
|
-
|
||||||
name: remcsum_nopartial
|
name: remcsum-nopartial
|
||||||
type: flag
|
type: flag
|
||||||
-
|
-
|
||||||
name: local_v4
|
name: local-v4
|
||||||
type: u32
|
type: u32
|
||||||
-
|
-
|
||||||
name: local_v6
|
name: local-v6
|
||||||
type: binary
|
type: binary
|
||||||
checks:
|
checks:
|
||||||
min-len: 16
|
min-len: 16
|
||||||
-
|
-
|
||||||
name: peer_v4
|
name: peer-v4
|
||||||
type: u32
|
type: u32
|
||||||
-
|
-
|
||||||
name: peer_v6
|
name: peer-v6
|
||||||
type: binary
|
type: binary
|
||||||
checks:
|
checks:
|
||||||
min-len: 16
|
min-len: 16
|
||||||
-
|
-
|
||||||
name: peer_port
|
name: peer-port
|
||||||
type: u16
|
type: u16
|
||||||
byte-order: big-endian
|
byte-order: big-endian
|
||||||
-
|
-
|
||||||
|
@ -90,12 +90,12 @@ operations:
|
||||||
- port
|
- port
|
||||||
- ipproto
|
- ipproto
|
||||||
- type
|
- type
|
||||||
- remcsum_nopartial
|
- remcsum-nopartial
|
||||||
- local_v4
|
- local-v4
|
||||||
- peer_v4
|
- peer-v4
|
||||||
- local_v6
|
- local-v6
|
||||||
- peer_v6
|
- peer-v6
|
||||||
- peer_port
|
- peer-port
|
||||||
- ifindex
|
- ifindex
|
||||||
|
|
||||||
-
|
-
|
||||||
|
@ -112,11 +112,11 @@ operations:
|
||||||
- af
|
- af
|
||||||
- ifindex
|
- ifindex
|
||||||
- port
|
- port
|
||||||
- peer_port
|
- peer-port
|
||||||
- local_v4
|
- local-v4
|
||||||
- peer_v4
|
- peer-v4
|
||||||
- local_v6
|
- local-v6
|
||||||
- peer_v6
|
- peer-v6
|
||||||
|
|
||||||
-
|
-
|
||||||
name: get
|
name: get
|
||||||
|
|
Loading…
Add table
Reference in a new issue