PATCH 2.2.7 - via-rhine receive byte counting patch

David B. Rees (dbr@spoke.nols.com)
Thu, 29 Apr 1999 00:04:27 -0700 (PDT)


Looks like the via-rhine receive byte counting patch wasn't included into 2.2.7.

Here's the patch to make it keep track of how many bytes it receives.

-Dave

--- linux/drivers/net/via-rhine.c.orig Wed Apr 28 23:59:07 1999
+++ linux/drivers/net/via-rhine.c Wed Apr 28 23:59:28 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/