Commit 821d5777 authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller

ipv6: added net argument to IP6_ADD_STATS_BH

Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 483a47d2
...@@ -133,7 +133,8 @@ DECLARE_SNMP_STAT(struct ipstats_mib, ipv6_statistics); ...@@ -133,7 +133,8 @@ DECLARE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
_DEVINC(ipv6, , idev, field); }) _DEVINC(ipv6, , idev, field); })
#define IP6_INC_STATS_BH(net, idev,field) ({ (void)(net); \ #define IP6_INC_STATS_BH(net, idev,field) ({ (void)(net); \
_DEVINC(ipv6, _BH, idev, field); }) _DEVINC(ipv6, _BH, idev, field); })
#define IP6_ADD_STATS_BH(idev,field,val) _DEVADD(ipv6, _BH, idev, field, val) #define IP6_ADD_STATS_BH(net, idev,field,val) ({ (void)(net); \
_DEVADD(ipv6, _BH, idev, field, val); })
DECLARE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics); DECLARE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics); DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
......
...@@ -189,7 +189,7 @@ static void ip6_evictor(struct net *net, struct inet6_dev *idev) ...@@ -189,7 +189,7 @@ static void ip6_evictor(struct net *net, struct inet6_dev *idev)
evicted = inet_frag_evictor(&net->ipv6.frags, &ip6_frags); evicted = inet_frag_evictor(&net->ipv6.frags, &ip6_frags);
if (evicted) if (evicted)
IP6_ADD_STATS_BH(idev, IPSTATS_MIB_REASMFAILS, evicted); IP6_ADD_STATS_BH(net, idev, IPSTATS_MIB_REASMFAILS, evicted);
} }
static void ip6_frag_expire(unsigned long data) static void ip6_frag_expire(unsigned long data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment