mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
ip6mr: Make mroute_sk rcu-based
In ipmr the mr_table socket is handled under RCU. Introduce the same for ip6mr. Signed-off-by: Yuval Mintz <yuvalm@mellanox.com> Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6853f21f76
commit
8571ab479a
3 changed files with 31 additions and 22 deletions
|
@ -111,12 +111,12 @@ extern int ip6mr_get_route(struct net *net, struct sk_buff *skb,
|
|||
struct rtmsg *rtm, u32 portid);
|
||||
|
||||
#ifdef CONFIG_IPV6_MROUTE
|
||||
extern struct sock *mroute6_socket(struct net *net, struct sk_buff *skb);
|
||||
bool mroute6_is_socket(struct net *net, struct sk_buff *skb);
|
||||
extern int ip6mr_sk_done(struct sock *sk);
|
||||
#else
|
||||
static inline struct sock *mroute6_socket(struct net *net, struct sk_buff *skb)
|
||||
static inline bool mroute6_is_socket(struct net *net, struct sk_buff *skb)
|
||||
{
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
static inline int ip6mr_sk_done(struct sock *sk)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue