Skip to contentSkip to conversation

lite5200b ethernet statistics always is 0

DISCUSSION wang dengyi 1 participant 1 message Jan 31, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

On my development board:lite5200b, All value from the ethernet statistics is 0. Please see the ifconfig output at the end of my email.

The CPU is MPC5200b and the kernel is 2.4.14.

I checked the driver code:
linux/drivers/net/fec_mpc52xx/fec.c. The get_stats() function looks fine. The function read the statistics register using in_be32() function. But it always returns 0. The following line is my code to print the value from the register. The output is 0 for the register.
printk(KERN_ERR "%s:%d: rmon_r_octest: %x\n", __FUNCTION__, __LINE__, in_be32(&fec->rmon_r_octets));

Any idea, how do I fix it?

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr
CA:2A:AA:AB:EA:2A
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
frame:0
          TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:43

Thanks in advance.

Regards,

Dengyi Wang

____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com