linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: wang dengyi <dy_wang@yahoo.com>
To: linuxppc-embedded@ozlabs.org
Subject: lite5200b ethernet statistics always is 0
Date: Wed, 31 Jan 2007 09:24:10 -0800 (PST)	[thread overview]
Message-ID: <291223.31248.qm@web51908.mail.yahoo.com> (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

                 reply	other threads:[~2007-01-31 17:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=291223.31248.qm@web51908.mail.yahoo.com \
    --to=dy_wang@yahoo.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).