diff options
author | Denis V. Lunev <den@openvz.org> | 2008-10-08 13:33:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 14:14:13 -0400 |
commit | e41b5368e029e79d11acb5952bc73284e5026c62 (patch) | |
tree | 82d519911fb97171259260655e9b86a20fcfe378 /net/ipv6 | |
parent | a862f6a6dc89c57dd3a959a1636b59f0c27169c2 (diff) |
ipv6: added net argument to ICMP6_INC_STATS_BH
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/icmp.c | 4 | ||||
-rw-r--r-- | net/ipv6/ip6_output.c | 2 | ||||
-rw-r--r-- | net/ipv6/mcast.c | 2 | ||||
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
4 files changed, 6 insertions, 5 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 758cdd7dc27e..4c961556306a 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -664,7 +664,7 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
664 | skb_set_network_header(skb, nh); | 664 | skb_set_network_header(skb, nh); |
665 | } | 665 | } |
666 | 666 | ||
667 | ICMP6_INC_STATS_BH(idev, ICMP6_MIB_INMSGS); | 667 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INMSGS); |
668 | 668 | ||
669 | saddr = &ipv6_hdr(skb)->saddr; | 669 | saddr = &ipv6_hdr(skb)->saddr; |
670 | daddr = &ipv6_hdr(skb)->daddr; | 670 | daddr = &ipv6_hdr(skb)->daddr; |
@@ -772,7 +772,7 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
772 | return 0; | 772 | return 0; |
773 | 773 | ||
774 | discard_it: | 774 | discard_it: |
775 | ICMP6_INC_STATS_BH(idev, ICMP6_MIB_INERRORS); | 775 | ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INERRORS); |
776 | drop_no_count: | 776 | drop_no_count: |
777 | kfree_skb(skb); | 777 | kfree_skb(skb); |
778 | return 0; | 778 | return 0; |
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index f0fded630f57..e7eff320619c 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -1483,7 +1483,7 @@ int ip6_push_pending_frames(struct sock *sk) | |||
1483 | struct inet6_dev *idev = ip6_dst_idev(skb->dst); | 1483 | struct inet6_dev *idev = ip6_dst_idev(skb->dst); |
1484 | 1484 | ||
1485 | ICMP6MSGOUT_INC_STATS_BH(idev, icmp6_hdr(skb)->icmp6_type); | 1485 | ICMP6MSGOUT_INC_STATS_BH(idev, icmp6_hdr(skb)->icmp6_type); |
1486 | ICMP6_INC_STATS_BH(idev, ICMP6_MIB_OUTMSGS); | 1486 | ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTMSGS); |
1487 | } | 1487 | } |
1488 | 1488 | ||
1489 | err = ip6_local_out(skb); | 1489 | err = ip6_local_out(skb); |
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index fa413afeb994..f06ceea1ffa0 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
@@ -1475,7 +1475,7 @@ static void mld_sendpack(struct sk_buff *skb) | |||
1475 | out: | 1475 | out: |
1476 | if (!err) { | 1476 | if (!err) { |
1477 | ICMP6MSGOUT_INC_STATS_BH(idev, ICMPV6_MLD2_REPORT); | 1477 | ICMP6MSGOUT_INC_STATS_BH(idev, ICMPV6_MLD2_REPORT); |
1478 | ICMP6_INC_STATS_BH(idev, ICMP6_MIB_OUTMSGS); | 1478 | ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTMSGS); |
1479 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTMCASTPKTS); | 1479 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTMCASTPKTS); |
1480 | } else | 1480 | } else |
1481 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTDISCARDS); | 1481 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_OUTDISCARDS); |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 6268d266c034..424d9c4a67ac 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -330,7 +330,8 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
330 | th->dest, &hdr->saddr, th->source, skb->dev->ifindex); | 330 | th->dest, &hdr->saddr, th->source, skb->dev->ifindex); |
331 | 331 | ||
332 | if (sk == NULL) { | 332 | if (sk == NULL) { |
333 | ICMP6_INC_STATS_BH(__in6_dev_get(skb->dev), ICMP6_MIB_INERRORS); | 333 | ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), |
334 | ICMP6_MIB_INERRORS); | ||
334 | return; | 335 | return; |
335 | } | 336 | } |
336 | 337 | ||