ipv6: added net argument to ICMP6MSGOUT_INC_STATS
authorDenis V. Lunev <den@openvz.org>
Wed, 8 Oct 2008 17:33:50 +0000 (10:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Oct 2008 18:14:44 +0000 (11:14 -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 5107cd92a46718bd633ac764fee3e5be07e66c66..7f5a8dec1ae9a4fdaa6d80ff95ac3f2179263d25 100644 (file)
@@ -144,8 +144,8 @@ DECLARE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
 #define ICMP6_INC_STATS_BH(net, idev, field)   ({ (void)(net); \
                _DEVINC(icmpv6, _BH, idev, field); })
 
-#define ICMP6MSGOUT_INC_STATS(idev, field) \
-       _DEVINC(icmpv6msg, , idev, field +256)
+#define ICMP6MSGOUT_INC_STATS(net, idev, field) ({ (void)(net); \
+       _DEVINC(icmpv6msg, , idev, field +256); })
 #define ICMP6MSGOUT_INC_STATS_BH(idev, field) \
        _DEVINC(icmpv6msg, _BH, idev, field +256)
 #define ICMP6MSGIN_INC_STATS(idev, field) \
index f06ceea1ffa0f9371dce16459313db00a07ace4e..a96e4235fbfaacc9619aecff9fd514389a0d1bbe 100644 (file)
@@ -1839,7 +1839,7 @@ static void igmp6_send(struct in6_addr *addr, struct net_device *dev, int type)
                      dst_output);
 out:
        if (!err) {
-               ICMP6MSGOUT_INC_STATS(idev, type);
+               ICMP6MSGOUT_INC_STATS(net, idev, type);
                ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
                IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTMCASTPKTS);
        } else
index 6ce238ca53875aeb74e40db8ccab5647b9373132..840b15780a366a7d09e8df994eabc0ddb9752f13 100644 (file)
@@ -521,7 +521,7 @@ static void __ndisc_send(struct net_device *dev,
        err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, dst->dev,
                      dst_output);
        if (!err) {
-               ICMP6MSGOUT_INC_STATS(idev, type);
+               ICMP6MSGOUT_INC_STATS(net, idev, type);
                ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
        }
 
@@ -1585,7 +1585,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
        err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, buff, NULL, dst->dev,
                      dst_output);
        if (!err) {
-               ICMP6MSGOUT_INC_STATS(idev, NDISC_REDIRECT);
+               ICMP6MSGOUT_INC_STATS(net, idev, NDISC_REDIRECT);
                ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
        }