]> git.ipfire.org Git - thirdparty/linux.git/commit
inet: annotate devconf data-races
authorEric Dumazet <edumazet@google.com>
Tue, 27 Feb 2024 09:24:09 +0000 (09:24 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 03:36:39 +0000 (19:36 -0800)
commit0598f8f3bb77893a13105d47bb7dfe42f1dc1f4e
tree46d9f5a898c8e044bbe5f1d8257e3a4311500827
parente83ddcea65491efe29e12765996966509aa795d3
inet: annotate devconf data-races

Add READ_ONCE() in ipv4_devconf_get() and corresponding
WRITE_ONCE() in ipv4_devconf_set()

Add IPV4_DEVCONF_RO() and IPV4_DEVCONF_ALL_RO() macros,
and use them when reading devconf fields.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240227092411.2315725-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/inetdevice.h
net/ipv4/devinet.c
net/ipv4/igmp.c
net/ipv4/proc.c
net/ipv4/route.c