]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc7344e04de2a643daa59eec25233f4309a1c3b8
tree1855cbcd592537adcc3f86a62d4dc2a7e2f84270
parent805eac7a5eb8e3336b2960d8c27094ae894ea19e
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