Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c964ff4ffbef4586ec63dbeb008563078114e6dc
Commit:     c964ff4ffbef4586ec63dbeb008563078114e6dc
Parent:     68365458a4252fa993b91a00f7a0b18fed399f0d
Author:     Wang Chen <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 21 03:04:47 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 21 03:05:20 2008 -0800

    [IPV6]: ICMP6_MIB_OUTMSGS increment duplicated
    
    icmpv6_send() calls ip6_push_pending_frames() indirectly.
    Both ip6_push_pending_frames() and icmpv6_send() increment
    counter ICMP6_MIB_OUTMSGS.
    
    This patch remove the increment from icmpv6_send.
    
    Signed-off-by: Wang Chen <[EMAIL PROTECTED]>
    Acked-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv6/icmp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index 9bb031f..f124068 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -458,8 +458,6 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, 
__u32 info,
        }
        err = icmpv6_push_pending_frames(sk, &fl, &tmp_hdr, len + sizeof(struct 
icmp6hdr));
 
-       ICMP6_INC_STATS_BH(idev, ICMP6_MIB_OUTMSGS);
-
 out_put:
        if (likely(idev != NULL))
                in6_dev_put(idev);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to