[PATCH - 2.2.12, via-rhine v1.01] rx statistics bug (back again)

David Rees (drees@spoke.nols.com)
Thu, 26 Aug 1999 08:03:41 -0700


Hi Folks,

It seems that the via-rhine driver v1.01 in 2.2.12 (and 2.2.11, too I just
noticed) has lost the ability to keep track of how many bytes it has
recieved via the /proc/net/dev interface again. It looks like when the
driver was upgraded to v1.01 from v1.00 a line of code was lost (according
the 2.2.11 patch). Here's a one line patch to bring those back, and keep
my WMNet graphs happy. ;-)

-Dave

--- drivers/net/via-rhine.c.old Mon Aug 9 12:04:57 1999
+++ drivers/net/via-rhine.c Thu Aug 26 07:41:54 1999
@@ -1058,6 +1058,7 @@
skb->protocol = eth_type_trans(skb, dev);
netif_rx(skb);
dev->last_rx = jiffies;
+ np->stats.rx_bytes += pkt_len;
np->stats.rx_packets++;
}
entry = (++np->cur_rx) % RX_RING_SIZE;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/