[PATCH] Olympic driver - kfree_skb on hard IRQ warnings

From: Mike Phillips (phillips@okpcm.com)
Date: Wed Feb 23 2000 - 13:29:30 EST


Here is the patch for the olympic driver to stop getting the kfree_skb on
hard IRQ warning messages.

Mike Phillips
Linux Token Ring Project
http://www.linuxtr.net


--- olympic.c.orig Wed Feb 23 13:15:59 2000
+++ olympic.c Wed Feb 23 13:19:21 2000
@@ -26,10 +26,9 @@
  * resource. Driver also reports the card name returned by
  * the pci resource.
  * 1/11/00 - Added spinlocks for smp
- *
- * To Do:
+ * 2/23/00 - Updated to dev_kfree_irq
  *
- * IPv6 Multicast
+ * To Do:
  *
  * If Problems do Occur
  * Most problems can be rectified by either closing and opening the interface
@@ -88,7 +87,7 @@
  */
 
 static char *version =
-"Olympic.c v0.3.1 1/11/00 - Peter De Schrijver & Mike Phillips" ;
+"Olympic.c v0.3.2 2/23/00 - Peter De Schrijver & Mike Phillips" ;
 
 static char *open_maj_error[] = {"No error", "Lobe Media Test", "Physical Insertion",
                                    "Address Verification", "Neighbor Notification (Ring Poll)",
@@ -777,7 +776,7 @@
                         olympic_priv->free_tx_ring_entries++;
                         olympic_priv->olympic_stats.tx_bytes += olympic_priv->tx_ring_skb[olympic_priv->tx_ring_last_status]->len;
                         olympic_priv->olympic_stats.tx_packets++ ;
- dev_kfree_skb(olympic_priv->tx_ring_skb[olympic_priv->tx_ring_last_status]);
+ dev_kfree_skb_irq(olympic_priv->tx_ring_skb[olympic_priv->tx_ring_last_status]);
                         olympic_priv->olympic_tx_ring[olympic_priv->tx_ring_last_status].buffer=0xdeadbeef;
                         olympic_priv->olympic_tx_status_ring[olympic_priv->tx_ring_last_status].status=0;
                         netif_wake_queue(dev);

-
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 : Wed Feb 23 2000 - 21:00:33 EST