Skip to contentSkip to conversation

Add stats in multicast routing module method ip6_mr_forward().

PATCH Applied Rami Rosen 3 participants 4 messages Apr 10, 2008 – Apr 14, 2008

Subsystems (3)
lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 Add stats in multicast routing module method ip6_mr_forward().

Hi,
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).

Regards,
Rami Rosen

net/ipv6/ip6mr.c +1 -1
index da673ef..e3ac606 100644
@@ -1368,7 +1368,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);
 }
 
maintainer
#1 lore raw

From: "Rami Rosen" <[email protected]>
Date: Thu, 10 Apr 2008 21:21:12 +0300

Quoted 5 lines

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).

This looks OK to me, but I'll let Yoshifuji pick it up.

#2 lore raw

In article <[email protected]> (at Sun, 13 Apr 2008 23:18:06 -0700 (PDT)), David Miller <[email protected]> says:

Quoted 10 lines

From: "Rami Rosen" <[email protected]>
Date: Thu, 10 Apr 2008 21:21:12 +0300

Quoted 5 lines

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).

This looks OK to me, but I'll let Yoshifuji pick it up.

I'm okay with it.
Here it is.

----

Quoted 1 line

From e70bc6976e796815e176912a92f72719f7276de1 Mon Sep 17 00:00:00 2001

From: Rami Rosen <[email protected]>
Date: Thu, 10 Apr 2008 21:21:12 +0300
Subject: [PATCH] [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).

---
 net/ipv6/ip6mr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv6/ip6mr.c +1 -1
index 94ede69..0971f4b 100644
@@ -1359,7 +1359,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);
 }
 
Signature · 5 lines
1.4.4.4

-- 
YOSHIFUJI Hideaki @ USAGI Project  <[email protected]>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
maintainer Applied
#3 lore raw

From: YOSHIFUJI Hideaki / 吉藤英明 <[email protected]>
Date: Mon, 14 Apr 2008 15:59:16 +0900 (JST)

Quoted 9 lines

In article <[email protected]> (at Sun, 13 Apr 2008 23:18:06 -0700 (PDT)), David Miller <[email protected]> says:

Quoted 7 lines

From: "Rami Rosen" <[email protected]>
Date: Thu, 10 Apr 2008 21:21:12 +0300

Quoted 4 lines

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).

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

This looks OK to me, but I'll let Yoshifuji pick it up.

I'm okay with it.
Here it is.

Applied, thank you.