summaryrefslogtreecommitdiffstats
path: root/include/net/addrconf.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-02-28 14:54:32 +0100
committerDavid S. Miller <davem@davemloft.net>2024-03-01 09:42:32 +0100
commitfca34cc075996767fbbdb6252be9ddd21c34c920 (patch)
treefc5017e34755b12dc2d0af178b763469575b1ac6 /include/net/addrconf.h
parentipv6: annotate data-races in ndisc_router_discovery() (diff)
downloadlinux-fca34cc075996767fbbdb6252be9ddd21c34c920.tar.xz
linux-fca34cc075996767fbbdb6252be9ddd21c34c920.zip
ipv6: annotate data-races around idev->cnf.ignore_routes_with_linkdown
idev->cnf.ignore_routes_with_linkdown can be used without any locks, add appropriate annotations. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r--include/net/addrconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 30d6f1e84e46..9d06eb945509 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -417,7 +417,7 @@ static inline bool ip6_ignore_linkdown(const struct net_device *dev)
if (unlikely(!idev))
return true;
- return !!idev->cnf.ignore_routes_with_linkdown;
+ return !!READ_ONCE(idev->cnf.ignore_routes_with_linkdown);
}
void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp);