Skip to content

Commit

Permalink
ipv6: added net argument to ICMP6MSGIN_INC_STATS_BH
Browse files Browse the repository at this point in the history
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Oct 8, 2008
1 parent a712d3e commit 55d4380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/net/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
_DEVINC(icmpv6msg, , idev, field +256); })
#define ICMP6MSGOUT_INC_STATS_BH(net, idev, field) ({ (void)(net); \
_DEVINC(icmpv6msg, _BH, idev, field +256); })
#define ICMP6MSGIN_INC_STATS_BH(idev, field) \
_DEVINC(icmpv6msg, _BH, idev, field)
#define ICMP6MSGIN_INC_STATS_BH(net, idev, field) ({ (void)(net); \
_DEVINC(icmpv6msg, _BH, idev, field); })

struct ip6_ra_chain
{
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static int icmpv6_rcv(struct sk_buff *skb)

type = hdr->icmp6_type;

ICMP6MSGIN_INC_STATS_BH(idev, type);
ICMP6MSGIN_INC_STATS_BH(dev_net(dev), idev, type);

switch (type) {
case ICMPV6_ECHO_REQUEST:
Expand Down

0 comments on commit 55d4380

Please sign in to comment.