netdev
[Top] [All Lists]

drop counts

To: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>, e1000-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: drop counts
From: P@xxxxxxxxxxxxxx
Date: Tue, 19 Jul 2005 11:57:51 +0100
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124
I'm confused about the drop count reporting in e1000
nics (and elsewhere). On e1000 nics the on nic rx buffer
drop counts are maintained in "mpc" and the in kernel buffer drops
are maintained in "rnbc".
Note also the e1000 nic does not count mpc in its
rx_packets count (gprc).
In kernel 2.6.11 and before these were mapped to the
kernel statistics like:

packets = gprc
dropped = rnbc
fifo = mpc
missed = mpc

In 2.6.12 this changed to:

packets = gprc
dropped = mpc
fifo = mpc
missed = mpc

Both are wrong I think and
I think it should do (see attached patch):

packets = gprc + mpc
dropped = mpc + rnbc
fifo = rnbc
missed = mpc

I tried to correlate this with the tg3 driver,
but that confused me also as it seems to do:

packets = rx_packets
dropped = equiv of rnbc (maintained by driver)
fifo = ?
missed = ?
errors = rx_errors + rx_discards

cheers,
PÃdraig.

Attachment: e1000-drops.diff
Description: TeXInfo document

<Prev in Thread] Current Thread [Next in Thread>
  • drop counts, P <=