]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv4: use rcu in ip_fib_check_default()
authorEric Dumazet <edumazet@google.com>
Fri, 4 Oct 2024 13:47:18 +0000 (13:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Oct 2024 23:38:58 +0000 (16:38 -0700)
commitfc38b28365e5f1396209d2878a34065468765087
tree726d3e346836d55f05e5e2a1c54aae425fa9aee6
parent8a0f62fdeb9ea66ad3d0e959c7c4addbabeac1be
ipv4: use rcu in ip_fib_check_default()

fib_info_devhash[] is not resized in fib_info_hash_move().

fib_nh structs are already freed after an rcu grace period.

This will allow to remove fib_info_lock in the following patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20241004134720.579244-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_semantics.c