[PATCH] 2.2.6 via-rhine driver doesn't count received bytes

David B. Rees (dbr@spoke.nols.com)
Sat, 17 Apr 1999 10:50:15 -0700 (PDT)


A few others helped me figure out why my via-rhine card wasn't keeping track of
how many bytes it received. Here's a one-liner to fix that little bug.

--- linux/drivers/net/via-rhine.c.orig Sun Apr 11 16:16:17 1999
+++ linux/drivers/net/via-rhine.c Fri Apr 16 16:46:17 1999
@@ -1053,6 +1053,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/