ipmr: add rcu protection over (struct vif_device)->dev
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 04:34:32 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:37 +0000 (11:34 +0100)
commitebc3197963fc42841b183d0280bd3f9f85f13c30
tree7c91d003c63e3d304036322e892a9bc833c76bee
parent0a24c43f54b296629774b47a0763123f3c18db9b
ipmr: add rcu protection over (struct vif_device)->dev

We will soon use RCU instead of rwlock in ipmr & ip6mr

This preliminary patch adds proper rcu verbs to read/write
(struct vif_device)->dev

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute_base.h
net/ipv4/ipmr.c
net/ipv4/ipmr_base.c
net/ipv6/ip6mr.c