linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* lite5200b ethernet statistics always is 0
@ 2007-01-31 17:24 wang dengyi
  0 siblings, 0 replies; only message in thread
From: wang dengyi @ 2007-01-31 17:24 UTC (permalink / raw)
  To: linuxppc-embedded

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-31 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 17:24 lite5200b ethernet statistics always is 0 wang dengyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).