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.
e1000-drops.diff
Description: TeXInfo document
|