]> git.hungrycats.org Git - linux/commit
ipv4: handle devconf post-set actions on netlink updates
authorFernando Fernandez Mancera <fmancera@suse.de>
Tue, 9 Jun 2026 20:45:19 +0000 (22:45 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jun 2026 21:15:53 +0000 (14:15 -0700)
commit489730ec2a73e27a030f53c3260703417f1108bb
treee7e53c0d32c606a6df9e94fcf664701f896accaa
parent3a29b55505f386c5d5f9f1b1c296b33e1651a1b4
ipv4: handle devconf post-set actions on netlink updates

When IPv4 device configuration parameters are updated via netlink, the
kernel currently only updates the value. This bypasses several
post-modification actions that occur when these same parameters are
updated via sysctl, such as flushing the routing cache or emitting
RTM_NEWNETCONF notifications.

This patch addresses the inconsistency by calling the
devinet_conf_post_set() helper inside inet_set_link_af(). If a flush is
required, we defer it until the netlink attribute parsing loop
completes.

This ensures consistent behavior and side-effects for devconf changes,
regardless of whether they are initiated via sysctl or netlink.

Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Link: https://patch.msgid.link/20260609204520.4670-2-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/devinet.c