kfree_skb fixes for rtl8139 driver in 2.3.43

From: Oleg Drokin (green@ccssu.crimea.ua)
Date: Fri Feb 11 2000 - 10:45:50 EST


Hello!

Here is the diff against 2.3.43

--- rtl8139.c.orig Fri Feb 11 17:43:51 2000
+++ rtl8139.c Fri Feb 11 17:45:01 2000
@@ -96,11 +96,6 @@
 #else
 #define PCI_SUPPORT_VER2
 #endif
-#if LINUX_VERSION_CODE < 0x20159
-#define dev_free_skb(skb) dev_kfree_skb(skb, FREE_WRITE);
-#else
-#define dev_free_skb(skb) dev_kfree_skb(skb);
-#endif
 
 /* The I/O extent. */
 #define RTL8129_TOTAL_SIZE 0x80
@@ -1096,7 +1091,7 @@
                                 }
 
                                 /* Free the original skb. */
- dev_free_skb(tp->tx_info[entry].skb);
+ dev_kfree_skb_irq(tp->tx_info[entry].skb);
                                 tp->tx_info[entry].skb = NULL;
                                 if (tp->tx_full) {
                                         /* The ring is no longer full, wake the queue. */
@@ -1322,7 +1317,7 @@
                 if (skb) {
                         if (mapping)
                                 pci_unmap_single(tp->pdev, mapping, skb->len);
- dev_free_skb(skb);
+ dev_kfree_skb(skb);
                 }
                 tp->tx_info[i].skb = NULL;
                 tp->tx_info[i].mapping = 0;

Bye,
    Oleg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:21 EST