patch-2.4.23 linux-2.4.23/drivers/net/yellowfin.c
Next file: linux-2.4.23/drivers/net/zorro8390.c
Previous file: linux-2.4.23/drivers/net/wireless/airo.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/net/yellowfin.c
- Orig date:
2003-06-13 07:51:35.000000000 -0700
diff -urN linux-2.4.22/drivers/net/yellowfin.c linux-2.4.23/drivers/net/yellowfin.c
@@ -867,8 +867,6 @@
/* Calculate the next Tx descriptor entry. */
entry = yp->cur_tx % TX_RING_SIZE;
- yp->tx_skbuff[entry] = skb;
-
if (gx_fix) { /* Note: only works for paddable protocols e.g. IP. */
int cacheline_end = ((unsigned long)skb->data + skb->len) % 32;
/* Fix GX chipset errata. */
@@ -885,6 +883,8 @@
return 0;
}
}
+ yp->tx_skbuff[entry] = skb;
+
#ifdef NO_TXSTATS
yp->tx_ring[entry].addr = cpu_to_le32(pci_map_single(yp->pci_dev,
skb->data, len, PCI_DMA_TODEVICE));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)