From: Rami Rosen Date: Mon, 14 Apr 2008 06:59:13 +0000 (-0700) Subject: [IPV6] MROUTE: Add stats in multicast routing module method ip6_mr_forward(). X-Git-Tag: v2.6.26-rc1~1138^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0912ea38de61378c5c753aef78c12e2f95854313;p=platform%2Fkernel%2Flinux-3.10.git [IPV6] MROUTE: Add stats in multicast routing module method ip6_mr_forward(). This patches adds a call to increment IPSTATS_MIB_OUTFORWDATAGRAMS when forwarding the packet in ip6_mr_forward() in the IPv6 multicast routing module (net/ipv6/ip6mr.c). Signed-off-by: Rami Rosen Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 6e2e3c9..c8c6e33 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -1354,7 +1354,7 @@ int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg) static inline int ip6mr_forward2_finish(struct sk_buff *skb) { - /* XXX stats */ + IP6_INC_STATS_BH(ip6_dst_idev(skb->dst), IPSTATS_MIB_OUTFORWDATAGRAMS); return dst_output(skb); }