]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: ipmr_cache_report() changes
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 04:34:34 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:37 +0000 (11:34 +0100)
commit64b3a0c0227704cfba2c895fc06baeabfaf37dec
treefb3b31c8bddb36858e02fd2de28599be66113335
parent6fe51cb12406934cb8dd7b716303a7a2416ebf19
ipmr: ipmr_cache_report() changes

ipmr_cache_report() first argument can be marked const, and we change
the caller convention about which lock needs to be held.

Instead of read_lock(&mrt_lock), we can use rcu_read_lock().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c