Messages in this thread Patch in this message | | | Date | Sun, 11 Apr 1999 16:19:41 -0700 (PDT) | From | "David B. Rees" <> | Subject | [PATCH] Re: via-rhine and missing /proc/net/dev receive bytes |
| |
On 11-Apr-99 Philip Blundell wrote: >>Well, the weird part is that the transmitting bytes are working properly... > > Yeah. I just looked at the driver and it does indeed implement the tx byte > counter but not the rx one. Bizarre. > > To make it work you just need to add something along the lines of `np-> > stats.rx_bytes += skb->len;' at about line 1053, I imagine. > > p.
You are correct. Here's the patch. I've cc'd Donald Becker so he can put the changes in his code, too.
-Dave
--- linux/drivers/net/via-rhine.c.orig Sun Apr 11 16:16:17 1999 +++ linux/drivers/net/via-rhine.c Sun Apr 11 16:15:45 1999 @@ -1053,6 +1053,7 @@ skb->protocol = eth_type_trans(skb, dev); netif_rx(skb); dev->last_rx = jiffies; + np->stats.rx_bytes += skb->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/
| |