Interface Statistics
Subsystems (3)
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
[email protected]
Quoted 10 lines · On Thu, 4 May 2006 16:16:33 -0500 "Paul C. Diem" <[email protected]> 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/devreflect all packets received/transmitted (even those that were only bridged) or only those actually targeted to/irrigated from the server?Thank you,
Quoted 7 lines
Paul C. Diem
[email protected]_______________________________________________
Bridge mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/bridge
did you look at 'ip -s link'?
Yes, I did. ip -s link show always shows zero for multicast packets too.
Paul C. Diem
[email protected]
-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Thursday, May 04, 2006 4:36 PM
To: Paul C. Diem
Cc: [email protected]
Subject: Re: [Bridge] Interface Statistics
Quoted 5 lines · On Thu, 4 May 2006 16:16:33 -0500 "Paul C. Diem" <[email protected]> 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/devreflect
all
Quoted 5 lines
packets received/transmitted (even those that were only bridged) or only those actually targeted to/irrigated from the server?
Thank you,
Quoted 7 lines
Paul C. Diem
[email protected]_______________________________________________
Bridge mailing list
[email protected]
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
PATCH 1/1 bridge: keep track of received multicast packets
It makes sense to add this simple statistic to keep track of received multicast packets.
net/bridge/br_input.c +1 -0
@@ -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);
Re: [PATCH] bridge: keep track of received multicast packets
From: Stephen Hemminger <[email protected]>
Date: Thu, 4 May 2006 16:10:19 -0700
Quoted 4 lines
It makes sense to add this simple statistic to keep track of received multicast packets.
Signed-off-by Stephen Hemminger <[email protected]>
Applied, thanks Stephen.