ip6mr: ip6mr_cache_report() changes
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 04:34:40 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:37 +0000 (11:34 +0100)
commit3493a5b730e5c0dfecb445e56a4ad36a36819ba9
tree1855cbcd592537adcc3f86a62d4dc2a7e2f84270
parente4cd9868e8ec3691e6d94725c8b10edd1ec6eca2
ip6mr: ip6mr_cache_report() changes

ip6mr_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/ipv6/ip6mr.c