ndisc: ndisc_send_redirect() cleanup
authorEric Dumazet <edumazet@google.com>
Fri, 14 Feb 2025 14:07:05 +0000 (14:07 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Feb 2025 17:08:46 +0000 (09:08 -0800)
commit0784d83df3bfc977c13252a0599be924f0afa68d
tree4f14788fb6287c3883801ec4237a538278402e45
parent7f89ec6c4537f2d9fdee98e8a7ec694c21c661f2
ndisc: ndisc_send_redirect() cleanup

ndisc_send_redirect() is always called under rcu_read_lock().

It can use dev_net_rcu() and avoid one redundant
rcu_read_lock()/rcu_read_unlock() pair.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250214140705.2105890-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ndisc.c