All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] Interface Statistics
@ 2006-05-04 21:16 Paul C. Diem
  2006-05-04 21:36 ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Paul C. Diem @ 2006-05-04 21:16 UTC (permalink / raw)
  To: bridge

Is there anyway to get interface statistics such as multicast packets
received/transmitted for the individual interfaces in a bridge or for the
bridge as a whole?

Do the Receive/Transmit bytes/packets counters in /proc/net/dev reflect all
packets received/transmitted (even those that were only bridged) or only
those actually targeted to/irrigated from the server?

Thank you,

Paul C. Diem
PCDiem@FoxValley.net


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bridge] Interface Statistics
  2006-05-04 21:16 [Bridge] Interface Statistics Paul C. Diem
@ 2006-05-04 21:36 ` Stephen Hemminger
  2006-05-04 22:01   ` Paul C. Diem
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Hemminger @ 2006-05-04 21:36 UTC (permalink / raw)
  To: Paul C. Diem; +Cc: bridge

On Thu, 4 May 2006 16:16:33 -0500
"Paul C. Diem" <PCDiem@foxvalley.net> wrote:

> Is there anyway to get interface statistics such as multicast packets
> received/transmitted for the individual interfaces in a bridge or for the
> bridge as a whole?
> 
> Do the Receive/Transmit bytes/packets counters in /proc/net/dev reflect all
> packets received/transmitted (even those that were only bridged) or only
> those actually targeted to/irrigated from the server?
> 
> Thank you,
> 
> Paul C. Diem
> PCDiem@FoxValley.net
> 
> _______________________________________________
> Bridge mailing list
> Bridge@lists.osdl.org
> https://lists.osdl.org/mailman/listinfo/bridge

did you look at 'ip -s link'?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [Bridge] Interface Statistics
  2006-05-04 21:36 ` Stephen Hemminger
@ 2006-05-04 22:01   ` Paul C. Diem
  2006-05-04 23:10       ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Paul C. Diem @ 2006-05-04 22:01 UTC (permalink / raw)
  To: bridge

Yes, I did. ip -s link show always shows zero for multicast packets too.

Paul C. Diem
PCDiem@FoxValley.net

-----Original Message-----
From: Stephen Hemminger [mailto:shemminger@osdl.org]
Sent: Thursday, May 04, 2006 4:36 PM
To: Paul C. Diem
Cc: bridge@lists.osdl.org
Subject: Re: [Bridge] Interface Statistics


On Thu, 4 May 2006 16:16:33 -0500
"Paul C. Diem" <PCDiem@foxvalley.net> wrote:

> Is there anyway to get interface statistics such as multicast packets
> received/transmitted for the individual interfaces in a bridge or for the
> bridge as a whole?
>
> Do the Receive/Transmit bytes/packets counters in /proc/net/dev reflect
all
> packets received/transmitted (even those that were only bridged) or only
> those actually targeted to/irrigated from the server?
>
> Thank you,
>
> Paul C. Diem
> PCDiem@FoxValley.net
>
> _______________________________________________
> Bridge mailing list
> Bridge@lists.osdl.org
> https://lists.osdl.org/mailman/listinfo/bridge

did you look at 'ip -s link'?

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bridge] [PATCH] bridge: keep track of received multicast packets
  2006-05-04 22:01   ` Paul C. Diem
@ 2006-05-04 23:10       ` Stephen Hemminger
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Hemminger @ 2006-05-04 23:10 UTC (permalink / raw)
  To: Paul C. Diem, David S. Miller; +Cc: netdev, bridge

It makes sense to add this simple statistic to keep track of received
multicast packets.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

--- bridge.orig/net/bridge/br_input.c	2006-04-21 14:28:55.000000000 -0700
+++ bridge/net/bridge/br_input.c	2006-05-04 16:07:24.000000000 -0700
@@ -66,6 +66,7 @@
 	}
 
 	if (is_multicast_ether_addr(dest)) {
+		br->statistics.multicast++;
 		br_flood_forward(br, skb, !passedup);
 		if (!passedup)
 			br_pass_frame_up(br, skb);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] bridge: keep track of received multicast packets
@ 2006-05-04 23:10       ` Stephen Hemminger
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Hemminger @ 2006-05-04 23:10 UTC (permalink / raw)
  To: Paul C. Diem, David S. Miller; +Cc: bridge, netdev

It makes sense to add this simple statistic to keep track of received
multicast packets.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

--- bridge.orig/net/bridge/br_input.c	2006-04-21 14:28:55.000000000 -0700
+++ bridge/net/bridge/br_input.c	2006-05-04 16:07:24.000000000 -0700
@@ -66,6 +66,7 @@
 	}
 
 	if (is_multicast_ether_addr(dest)) {
+		br->statistics.multicast++;
 		br_flood_forward(br, skb, !passedup);
 		if (!passedup)
 			br_pass_frame_up(br, skb);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bridge] Re: [PATCH] bridge: keep track of received multicast packets
  2006-05-04 23:10       ` Stephen Hemminger
@ 2006-05-06  0:07         ` David S. Miller
  -1 siblings, 0 replies; 7+ messages in thread
From: David S. Miller @ 2006-05-06  0:07 UTC (permalink / raw)
  To: shemminger; +Cc: bridge, netdev

From: Stephen Hemminger <shemminger@osdl.org>
Date: Thu, 4 May 2006 16:10:19 -0700

> It makes sense to add this simple statistic to keep track of received
> multicast packets.
> 
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

Applied, thanks Stephen.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] bridge: keep track of received multicast packets
@ 2006-05-06  0:07         ` David S. Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David S. Miller @ 2006-05-06  0:07 UTC (permalink / raw)
  To: shemminger; +Cc: PCDiem, bridge, netdev

From: Stephen Hemminger <shemminger@osdl.org>
Date: Thu, 4 May 2006 16:10:19 -0700

> It makes sense to add this simple statistic to keep track of received
> multicast packets.
> 
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

Applied, thanks Stephen.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-05-06  0:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-04 21:16 [Bridge] Interface Statistics Paul C. Diem
2006-05-04 21:36 ` Stephen Hemminger
2006-05-04 22:01   ` Paul C. Diem
2006-05-04 23:10     ` [Bridge] [PATCH] bridge: keep track of received multicast packets Stephen Hemminger
2006-05-04 23:10       ` Stephen Hemminger
2006-05-06  0:07       ` [Bridge] " David S. Miller
2006-05-06  0:07         ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.