]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dst: introduce dst->dev_rcu
authorEric Dumazet <edumazet@google.com>
Thu, 28 Aug 2025 19:58:16 +0000 (19:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Aug 2025 02:36:31 +0000 (19:36 -0700)
commitcaedcc5b6df1b2e2b5f39079e3369c1d4d5c5f50
treeec6964250ecf0067f7a21b9dab5408c18ff15e5e
parente71aa5a955a7059a705972e9bcdb074b6fd14696
net: dst: introduce dst->dev_rcu

Followup of commit 88fe14253e18 ("net: dst: add four helpers
to annotate data-races around dst->dev").

We want to gradually add explicit RCU protection to dst->dev,
including lockdep support.

Add an union to alias dst->dev_rcu and dst->dev.

Add dst_dev_net_rcu() helper.

Fixes: 4a6ce2b6f2ec ("net: introduce a new function dst_dev_put()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250828195823.3958522-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dst.h
net/core/dst.c
net/ipv4/route.c