]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: ip6_mc_input() and ip6_mr_input() cleanups
authorEric Dumazet <edumazet@google.com>
Mon, 30 Jun 2025 12:19:34 +0000 (12:19 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 21:32:30 +0000 (14:32 -0700)
commit46a94e44b9ec4d8d20108a1748c410d71a8dc759
tree33227e866d0d750756c8077cf6a7e9434c1f7c05
parent93d1cff35adc522a5d21e722eee1071f3f7dc716
ipv6: ip6_mc_input() and ip6_mr_input() cleanups

Both functions are always called under RCU.

We remove the extra rcu_read_lock()/rcu_read_unlock().

We use skb_dst_dev_net_rcu() instead of skb_dst_dev_net().

We use dev_net_rcu() instead of dev_net().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250630121934.3399505-11-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6_input.c
net/ipv6/ip6mr.c