patch-2.1.112 linux/drivers/net/seeq8005.c
Next file: linux/drivers/net/sk_g16.c
Previous file: linux/drivers/net/plip.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Jul 26 23:35:56 1998
- Orig file:
v2.1.111/linux/drivers/net/seeq8005.c
- Orig date:
Tue Mar 17 22:18:14 1998
diff -u --recursive --new-file v2.1.111/linux/drivers/net/seeq8005.c linux/drivers/net/seeq8005.c
@@ -372,6 +372,7 @@
seeq8005_send_packet(struct sk_buff *skb, struct device *dev)
{
int ioaddr = dev->base_addr;
+ struct net_local *lp = (struct net_local *)dev->priv;
if (dev->tbusy) {
/* If we get here, some higher level has decided we are broken.
@@ -397,6 +398,7 @@
hardware_send_packet(dev, buf, length);
dev->trans_start = jiffies;
+ lp->stats.tx_bytes += length;
}
dev_kfree_skb (skb);
@@ -547,6 +549,7 @@
skb->protocol=eth_type_trans(skb,dev);
netif_rx(skb);
lp->stats.rx_packets++;
+ lp->stats.rx_bytes += pkt_len;
}
} while ((--boguscount) && (pkt_hdr & SEEQPKTH_CHAIN));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov