aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/ipv6.h3
-rw-r--r--net/ipv6/reassembly.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index e7732d3a3f92..ac0487bab8b1 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -133,7 +133,8 @@ DECLARE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
133 _DEVINC(ipv6, , idev, field); }) 133 _DEVINC(ipv6, , idev, field); })
134#define IP6_INC_STATS_BH(net, idev,field) ({ (void)(net); \ 134#define IP6_INC_STATS_BH(net, idev,field) ({ (void)(net); \
135 _DEVINC(ipv6, _BH, idev, field); }) 135 _DEVINC(ipv6, _BH, idev, field); })
136#define IP6_ADD_STATS_BH(idev,field,val) _DEVADD(ipv6, _BH, idev, field, val) 136#define IP6_ADD_STATS_BH(net, idev,field,val) ({ (void)(net); \
137 _DEVADD(ipv6, _BH, idev, field, val); })
137 138
138DECLARE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics); 139DECLARE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
139DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics); 140DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
index 693d20836b3f..af12de071f4c 100644
--- a/net/ipv6/reassembly.c
+++ b/net/ipv6/reassembly.c
@@ -189,7 +189,7 @@ static void ip6_evictor(struct net *net, struct inet6_dev *idev)
189 189
190 evicted = inet_frag_evictor(&net->ipv6.frags, &ip6_frags); 190 evicted = inet_frag_evictor(&net->ipv6.frags, &ip6_frags);
191 if (evicted) 191 if (evicted)
192 IP6_ADD_STATS_BH(idev, IPSTATS_MIB_REASMFAILS, evicted); 192 IP6_ADD_STATS_BH(net, idev, IPSTATS_MIB_REASMFAILS, evicted);
193} 193}
194 194
195static void ip6_frag_expire(unsigned long data) 195static void ip6_frag_expire(unsigned long data)