Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 4eb77b4ecd3c ("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>

+18 -18
+18 -18
Documentation/netlink/specs/fou.yaml
··· 15 15 definitions: 16 16 - 17 17 type: enum 18 - name: encap_type 18 + name: encap-type 19 19 name-prefix: fou-encap- 20 20 enum-name: 21 21 entries: [ unspec, direct, gue ] ··· 43 43 name: type 44 44 type: u8 45 45 - 46 - name: remcsum_nopartial 46 + name: remcsum-nopartial 47 47 type: flag 48 48 - 49 - name: local_v4 49 + name: local-v4 50 50 type: u32 51 51 - 52 - name: local_v6 52 + name: local-v6 53 53 type: binary 54 54 checks: 55 55 min-len: 16 56 56 - 57 - name: peer_v4 57 + name: peer-v4 58 58 type: u32 59 59 - 60 - name: peer_v6 60 + name: peer-v6 61 61 type: binary 62 62 checks: 63 63 min-len: 16 64 64 - 65 - name: peer_port 65 + name: peer-port 66 66 type: u16 67 67 byte-order: big-endian 68 68 - ··· 90 90 - port 91 91 - ipproto 92 92 - 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 99 99 - ifindex 100 100 101 101 - ··· 112 112 - af 113 113 - ifindex 114 114 - 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 120 120 121 121 - 122 122 name: get