diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-09-04 12:14:10 -0700 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-09-08 12:56:34 +0200 |
| commit | fc7aa4b30acf126bd4e8d0aeee21e6d772072b28 (patch) | |
| tree | 1fe585a06c87349183ee5b4d893c2b99576824ef | |
| parent | b585005609b8538e6810c922a1364254536e010f (diff) | |
| download | linux-next-fc7aa4b30acf126bd4e8d0aeee21e6d772072b28.tar.gz linux-next-fc7aa4b30acf126bd4e8d0aeee21e6d772072b28.zip | |
netlink: specs: fou: add af to the shared attribute list
parse_nl_config() is the only place the address family is chosen: it
defaults cfg->udp_config.family to AF_INET and only switches to
AF_INET6 when FOU_ATTR_AF is present. The &all_attrs anchor - the add
request, and the get do and dump reply - does not list af, so a ynl
generated client has no fou_add_req_set_af() and can never create an
IPv6 FOU port; the local-v6 / peer-v6 attributes it does list are read
by nothing. On the reply side fou_fill_info() puts FOU_ATTR_AF
unconditionally, and struct fou_get_rsp has no member for it.
kernel-policy is global, so fou_nl_ops[] carries no per-op attribute
list and af is already in fou_nl_policy through &select_attrs - only
the user space codegen and the rendered docs change, ynl-regen.sh
produces no diff.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://patch.msgid.link/20260904191412.3872344-2-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
| -rw-r--r-- | Documentation/netlink/specs/fou.yaml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/netlink/specs/fou.yaml b/Documentation/netlink/specs/fou.yaml index 331f1b342b3a..32d34be1dc63 100644 --- a/Documentation/netlink/specs/fou.yaml +++ b/Documentation/netlink/specs/fou.yaml @@ -90,6 +90,7 @@ operations: request: &all_attrs attributes: - port + - af - ipproto - type - remcsum-nopartial |
