]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipv6: added net argument to ICMP6_INC_STATS
authorDenis V. Lunev <den@openvz.org>
Wed, 8 Oct 2008 17:33:06 +0000 (10:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Oct 2008 18:13:58 +0000 (11:13 -0700)
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/mcast.c
net/ipv6/ndisc.c

index ac0487bab8b1ab85fefbff0cd71b48788ca77a7f..744fe7443cb97b752e17858bee903238bc28b89d 100644 (file)
@@ -139,7 +139,8 @@ DECLARE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
 DECLARE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
 DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
 
-#define ICMP6_INC_STATS(idev, field)   _DEVINC(icmpv6, , idev, field)
+#define ICMP6_INC_STATS(net, idev, field)      ({ (void)(net); \
+               _DEVINC(icmpv6, , idev, field); })
 #define ICMP6_INC_STATS_BH(idev, field)        _DEVINC(icmpv6, _BH, idev, field)
 
 #define ICMP6MSGOUT_INC_STATS(idev, field) \
index 88811ebbe4be9d4c1d81a0a82f9ec4c141efd424..fa413afeb99426656d9ddc2490db011673adb888 100644 (file)
@@ -1840,7 +1840,7 @@ static void igmp6_send(struct in6_addr *addr, struct net_device *dev, int type)
 out:
        if (!err) {
                ICMP6MSGOUT_INC_STATS(idev, type);
-               ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS);
+               ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
                IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTMCASTPKTS);
        } else
                IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
index ce5b61763fd0d2e25f4a41b8ef92180c17cc9329..6ce238ca53875aeb74e40db8ccab5647b9373132 100644 (file)
@@ -522,7 +522,7 @@ static void __ndisc_send(struct net_device *dev,
                      dst_output);
        if (!err) {
                ICMP6MSGOUT_INC_STATS(idev, type);
-               ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS);
+               ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
        }
 
        if (likely(idev != NULL))
@@ -1586,7 +1586,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
                      dst_output);
        if (!err) {
                ICMP6MSGOUT_INC_STATS(idev, NDISC_REDIRECT);
-               ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS);
+               ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
        }
 
        if (likely(idev != NULL))