patch-2.3.44 linux/drivers/net/yellowfin.c

Next file: linux/drivers/sbus/char/pcikbd.c
Previous file: linux/drivers/net/wan/z85230.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.43/linux/drivers/net/yellowfin.c linux/drivers/net/yellowfin.c
@@ -86,8 +86,6 @@
 
 #define RUN_AT(x) (jiffies + (x))
 
-#define DEV_FREE_SKB(skb) dev_kfree_skb(skb);
-
 /* The PCI I/O space extent. */
 #define YELLOWFIN_TOTAL_SIZE 0x100
 
@@ -858,7 +856,7 @@
 			if (yp->tx_ring[entry].status == 0)
 				break;
 			/* Free the original skb. */
-			DEV_FREE_SKB(yp->tx_skbuff[entry]);
+			dev_kfree_skb_irq(yp->tx_skbuff[entry]);
 			yp->tx_skbuff[entry] = 0;
 			yp->stats.tx_packets++;
 		}
@@ -921,7 +919,7 @@
 				}
 
 				/* Free the original skb. */
-				DEV_FREE_SKB(yp->tx_skbuff[entry]);
+				dev_kfree_skb_irq(yp->tx_skbuff[entry]);
 				yp->tx_skbuff[entry] = 0;
 				/* Mark status as empty. */
 				yp->tx_status[entry].tx_errs = 0;
@@ -1193,13 +1191,13 @@
 		yp->rx_ring[i].cmd = CMD_STOP;
 		yp->rx_ring[i].addr = 0xBADF00D0; /* An invalid address. */
 		if (yp->rx_skbuff[i]) {
-			DEV_FREE_SKB(yp->rx_skbuff[i]);
+			dev_kfree_skb(yp->rx_skbuff[i]);
 		}
 		yp->rx_skbuff[i] = 0;
 	}
 	for (i = 0; i < TX_RING_SIZE; i++) {
 		if (yp->tx_skbuff[i])
-			DEV_FREE_SKB(yp->tx_skbuff[i]);
+			dev_kfree_skb(yp->tx_skbuff[i]);
 		yp->tx_skbuff[i] = 0;
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)