http://qa.mandrakesoft.com/show_bug.cgi?id=3430
Product: kernel
Component: kernel
Summary: Broadcom Tigon3 ethernet driver - TX/RX Counters stops
at 4294967295 bytes
Version: 2.4.21-0.13mdk
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: major
Priority: P2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
eth0 is the Broadcom Corporation NetXtreme NIC
Module used is tg3 for the Broadcom
Corporation NetXtreme BCM5702X Gigabit Ethernet NIC (copper).
Now, to my problem... Taking a look at /proc/net/dev for eth0 gives
this output:
# grep eth0 /proc/net/dev
eth0:4294967295 380546774 0 0 0 0 0 160585
4294967295 305679013 0 0 0 0 0 0
One minute later:
# grep eth0 /proc/net/dev
eth0:4294967295 380636014 0 0 0 0 0 160616
4294967295 305752037 0 0 0 0 0 0
And another minute later:
# grep eth0 /proc/net/dev
eth0:4294967295 380726683 0 0 0 0 0 160646
4294967295 305827998 0 0 0 0 0 0
During this period of time the interface transferred approimately 8Mbps
from the Internet and 3Mbps to the Internet in average.
Take a look at Receive bytes and Transmit bytes counters. They have
stalled. Packet counters seems ok though. It I'm correct these
counters are 32 bits wide, and should wrap around at (1>>32)-1
(4294967295) which seem to be the value where they stalled.
# ------
A brief look into /usr/src/linux/drivers/net/tg3.h shows that all statistics are
64 bits integer. Could that be the explanation?
/usr/src/linux/drivers/net/tg3.h:
# --- cut here ---
typedef struct {
u32 high, low;
} tg3_stat64_t;
struct tg3_hw_stats {
u8 __reserved0[0x400-0x300];
/* Statistics maintained by Receive MAC. */
tg3_stat64_t rx_octets;
u64 __reserved1;
tg3_stat64_t rx_fragments;
tg3_stat64_t rx_ucast_packets;
tg3_stat64_t rx_mcast_packets;
tg3_stat64_t rx_bcast_packets;
<snip>
# --- cut here ---
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.