mirror of https://gitee.com/openkylin/linux.git
ipv6: added net argument to IP6_ADD_STATS_BH
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
483a47d2fe
commit
821d57776d
|
@ -133,7 +133,8 @@ DECLARE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
|
|||
_DEVINC(ipv6, , idev, field); })
|
||||
#define IP6_INC_STATS_BH(net, idev,field) ({ (void)(net); \
|
||||
_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 icmpv6msg_mib, icmpv6msg_statistics);
|
||||
|
|
|
@ -189,7 +189,7 @@ static void ip6_evictor(struct net *net, struct inet6_dev *idev)
|
|||
|
||||
evicted = inet_frag_evictor(&net->ipv6.frags, &ip6_frags);
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue