From e769837e4e5ccec70c45de04da526a5c071b1fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Fri, 25 Sep 2026 21:39:04 +0000 Subject: [PATCH] netlink: specs: rt-link: re-align IPv4 devconf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The YNL "ipv4-devconf" enum is misaligned with the IPV4_DEVCONF_* enum. IPV4_DEVCONF_* starts at 1, ipv4-devconf starts at 0. $ git grep -B3 -A1 IPV4_DEVCONF_FORWARDING include/ inc../uapi/linux/ip.h-/* index values for the variables in ipv4_devconf */ inc../uapi/linux/ip.h-enum inc../uapi/linux/ip.h-{ inc../uapi/linux/ip.h: IPV4_DEVCONF_FORWARDING=1, inc../uapi/linux/ip.h- IPV4_DEVCONF_MC_FORWARDING, Re-align the YNL spec by explicitly setting the first value to 1. This misalignment has been present since the spec was added in commit b2f63d904e72 ("doc/netlink: Add spec for rt link messages"). Reviewed-by: Jakub Kicinski Signed-off-by: Asbjørn Sloth Tønnesen Reviewed-by: Hangbin Liu Link: https://patch.msgid.link/20260925213918.204767-2-ast@fiberby.net Signed-off-by: Paolo Abeni --- Documentation/netlink/specs/rt-link.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 7a72cd1b7e1e..8d63933f9910 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -309,6 +309,7 @@ definitions: entries: - name: forwarding + value: 1 - name: mc-forwarding -