diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-05-16 20:22:52 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-05-16 20:22:52 +0000 |
commit | 45e51c1beee43766d3a4fd5b40a339af21ef7fc9 (patch) | |
tree | 9c078374a50768aa9b50131b802d68082e1803ef | |
parent | 9b6a32b2a56606f1654e440c4b7d6d9fd9e194c6 (diff) |
Fix rx/tx byte accounting. From Flo and Klaus Naumann.
-rw-r--r-- | drivers/net/sgiseeq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c index 15a304c4f..1cea70fb7 100644 --- a/drivers/net/sgiseeq.c +++ b/drivers/net/sgiseeq.c @@ -326,6 +326,7 @@ static inline void sgiseeq_rx(struct net_device *dev, struct sgiseeq_private *sp skb->protocol = eth_type_trans(skb, dev); netif_rx(skb); sp->stats.rx_packets++; + sp->stats.rx_bytes += len; } else { printk ("%s: Memory squeeze, deferring packet.\n", dev->name); @@ -500,6 +501,7 @@ static int sgiseeq_start_xmit(struct sk_buff *skb, struct net_device *dev) /* Setup... */ skblen = skb->len; len = (skblen <= ETH_ZLEN) ? ETH_ZLEN : skblen; + sp->stats.tx_bytes += len; entry = sp->tx_new; td = &sp->srings.tx_desc[entry]; @@ -690,7 +692,7 @@ static inline void str2eaddr(unsigned char *ea, unsigned char *str) int sgiseeq_probe(struct net_device *dev) { - static int initialized; + static int initialized = 0; char *ep; if (initialized) /* Already initialized? */ |