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

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'tools-ynl-gen-misc-changes'

Asbjørn Sloth Tønnesen says:

====================
tools: ynl-gen: misc changes

Misc changes to ahead of wireguard ynl conversion, as announced in v1.

v1: https://lore.kernel.org/20250901145034.525518-1-ast@fiberby.net
====================

Link: https://patch.msgid.link/20250902154640.759815-1-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+6 -6
+2 -2
Documentation/netlink/specs/fou.yaml
··· 52 52 name: local-v6 53 53 type: binary 54 54 checks: 55 - min-len: 16 55 + exact-len: 16 56 56 - 57 57 name: peer-v4 58 58 type: u32 ··· 60 60 name: peer-v6 61 61 type: binary 62 62 checks: 63 - min-len: 16 63 + exact-len: 16 64 64 - 65 65 name: peer-port 66 66 type: u16
+1 -1
include/net/genetlink.h
··· 62 62 * @small_ops: the small-struct operations supported by this family 63 63 * @n_small_ops: number of small-struct operations supported by this family 64 64 * @split_ops: the split do/dump form of operation definition 65 - * @n_split_ops: number of entries in @split_ops, not that with split do/dump 65 + * @n_split_ops: number of entries in @split_ops, note that with split do/dump 66 66 * ops the number of entries is not the same as number of commands 67 67 * @sock_priv_size: the size of per-socket private memory 68 68 * @sock_priv_init: the per-socket private memory initializer
+2 -2
net/ipv4/fou_nl.c
··· 18 18 [FOU_ATTR_TYPE] = { .type = NLA_U8, }, 19 19 [FOU_ATTR_REMCSUM_NOPARTIAL] = { .type = NLA_FLAG, }, 20 20 [FOU_ATTR_LOCAL_V4] = { .type = NLA_U32, }, 21 - [FOU_ATTR_LOCAL_V6] = { .len = 16, }, 21 + [FOU_ATTR_LOCAL_V6] = NLA_POLICY_EXACT_LEN(16), 22 22 [FOU_ATTR_PEER_V4] = { .type = NLA_U32, }, 23 - [FOU_ATTR_PEER_V6] = { .len = 16, }, 23 + [FOU_ATTR_PEER_V6] = NLA_POLICY_EXACT_LEN(16), 24 24 [FOU_ATTR_PEER_PORT] = { .type = NLA_BE16, }, 25 25 [FOU_ATTR_IFINDEX] = { .type = NLA_S32, }, 26 26 };
+1 -1
tools/net/ynl/pyynl/ynl_gen_c.py
··· 556 556 elif 'exact-len' in self.checks: 557 557 mem = 'NLA_POLICY_EXACT_LEN(' + self.get_limit_str('exact-len') + ')' 558 558 elif 'min-len' in self.checks: 559 - mem = '{ .len = ' + self.get_limit_str('min-len') + ', }' 559 + mem = 'NLA_POLICY_MIN_LEN(' + self.get_limit_str('min-len') + ')' 560 560 elif 'max-len' in self.checks: 561 561 mem = 'NLA_POLICY_MAX_LEN(' + self.get_limit_str('max-len') + ')' 562 562