patch-2.2.19 linux/drivers/net/lance.c
Next file: linux/drivers/net/lanstreamer.c
Previous file: linux/drivers/net/irda/irtty.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Sun Mar 25 11:37:34 2001
- Orig file:
v2.2.18/drivers/net/lance.c
- Orig date:
Sun Mar 25 11:12:49 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/net/lance.c linux/drivers/net/lance.c
@@ -926,6 +926,8 @@
lp->tx_ring[entry].misc = 0x0000;
+ lp->stats.tx_bytes += skb->len;
+
/* If any part of this buffer is >16M we must copy it to a low-memory
buffer. */
if ((u32)virt_to_bus(skb->data) + skb->len > 0x01000000) {
@@ -941,7 +943,6 @@
lp->tx_ring[entry].base = ((u32)virt_to_bus(skb->data) & 0xffffff) | 0x83000000;
}
lp->cur_tx++;
- lp->stats.tx_bytes += skb->len;
/* Trigger an immediate send poll. */
outw(0x0000, ioaddr+LANCE_ADDR);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)