[vortex] 2.2.x BUG: stats.{rx_bytes,tx_bytes} wrong in drivers/net/3c59x.c

Oyvind.Aabling@uni-c.dk Oyvind.Aabling@uni-c.dk
Tue, 27 Jun 2000 13:22:22 +0200 (CEST)


The stats.rx_bytes and stats.tx_bytes fields are
increased by only ~48 bytes for each packet in
drivers/net/3c59x.c, no matter what the packet size is.

This problem is present in (at least) kernel versions 2.2.12 to 2.2.14,
but there are some interesting changes in the 2.4.0-test2 code.
As 2.4 isn't stable yet, I haven't tried it, but
it looks as if this bug has been solved there ?

Is there a patch available that fixes this problem in 2.2.x ?

We need these stats for fileserver performance monitoring,
but we're not going to switch to 2.4 until it stabilizes.

Repeat by:

$ cat /proc/net/dev
$ (move large file to (rx_bytes) or from (tx_bytes) machine across network)
$ cat /proc/net/dev

The packet counts (rx_packets,tx_packets) are correct,
but the bytes received resp. transmitted stats aren't:
e.g. move 1G over network, then rx_bytes or tx_bytes (depending
on direction) increases by only ~35MB, not ~1GB as expected.

Best Regards, Øyvind.

PS: The "Vortex driver development page" link to
http://www.scyld.com/network/vortex-develop.html
on http://www.scyld.com/network/vortex.html is
broken (webserver says the page doesn't exist).

*****************************************************************
* Øyvind Aabling        E-mail : Oyvind.Aabling@uni-c.dk        *
* UNI-C Lyngby          Phone  : +45 35 87 88 89 (switchboard)  *
* DTU Building 304      Phone  : +45 35 87 89 51 (direct)       *
* DK-2800 LYNGBY        Fax    : +45 35 87 89 90                *
* Denmark                                                       *
*****************************************************************