From fc7aa4b30acf126bd4e8d0aeee21e6d772072b28 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Fri, 4 Sep 2026 12:14:10 -0700 Subject: 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 Reviewed-by: Nicolas Dichtel Link: https://patch.msgid.link/20260904191412.3872344-2-kuba@kernel.org Signed-off-by: Paolo Abeni --- Documentation/netlink/specs/fou.yaml | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3