Skip to contentSkip to conversation

ipv6 flowlabel: Convert np->ipv6_fl_list to RCU.

RFC Applied YOSHIFUJI Hideaki 2 participants 2 messages Jan 30, 2013 – Jan 31, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC 3/4 ipv6 flowlabel: Convert np->ipv6_fl_list to RCU.

---
 include/linux/ipv6.h     |    2 +-
 include/net/ipv6.h       |    1 +
 net/ipv6/ip6_flowlabel.c |   72 +++++++++++++++++++++++++---------------------
 3 files changed, 42 insertions(+), 33 deletions(-)
include/linux/ipv6.h +1 -1
index e971e37..850e95b 100644
@@ -214,7 +214,7 @@ struct ipv6_pinfo {
 
 	struct ipv6_mc_socklist	__rcu *ipv6_mc_list;
 	struct ipv6_ac_socklist	*ipv6_ac_list;
-	struct ipv6_fl_socklist *ipv6_fl_list;
+	struct ipv6_fl_socklist __rcu *ipv6_fl_list;
 
 	struct ipv6_txoptions	*opt;
 	struct sk_buff		*pktoptions;
include/net/ipv6.h +1 -0
index 1d45716..851d541 100644
@@ -239,6 +239,7 @@ struct ip6_flowlabel {
 struct ipv6_fl_socklist {
 	struct ipv6_fl_socklist	*next;
 	struct ip6_flowlabel	*fl;
+	struct rcu_head		rcu;
 };
 
 extern struct ip6_flowlabel	*fl6_sock_lookup(struct sock *sk, __be32 label);
net/ipv6/ip6_flowlabel.c +40 -32

157 lines not on this page · raw message

Signature · 1 line
1.7.9.5