Files
linux/net/ipv6
Kuniyuki Iwashima dd103c9a53 neighbour: Remove __pneigh_lookup().
__pneigh_lookup() is the lockless version of pneigh_lookup(),
but its only caller pndisc_is_router() holds the table lock and
reads pneigh_netry.flags.

This is because accessing pneigh_entry after pneigh_lookup() was
illegal unless the caller holds RTNL or the table lock.

Now, pneigh_entry is guaranteed to be alive during the RCU critical
section.

Let's call pneigh_lookup() and use READ_ONCE() for n->flags in
pndisc_is_router() and remove __pneigh_lookup().

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250716221221.442239-13-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-17 16:25:21 -07:00
..
2025-07-02 14:32:30 -07:00
2025-07-02 15:42:29 -07:00
2025-07-02 14:32:30 -07:00
2025-07-02 14:32:30 -07:00
2025-07-03 16:00:50 +02:00
2025-07-02 14:32:30 -07:00
2025-07-17 16:25:20 -07:00
2025-07-02 14:32:30 -07:00
2025-07-17 16:25:21 -07:00
2025-06-23 17:04:03 -07:00
2025-06-23 17:04:03 -07:00
2025-07-02 14:32:30 -07:00
2024-05-30 18:29:38 -07:00
2023-10-27 10:35:46 +01:00