This is simpler way to just cut out the message if the race
occurs.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>

--- orig/drivers/net/tg3.c
+++ new/drivers/net/tg3.c
@@ -3567,10 +3567,12 @@ static int tg3_start_xmit(struct sk_buff
 
        /* This is a hard error, log it. */
        if (unlikely(TX_BUFFS_AVAIL(tp) <= (skb_shinfo(skb)->nr_frags + 1))) {
-               netif_stop_queue(dev);
+               if (!netif_stopped(dev)) {
+                       netif_stop_queue(dev);
+                       printk(KERN_ERR PFX "%s: BUG! Tx Ring full when queue 
awake!\n",
+                              dev->name);
+               }
                spin_unlock(&tp->tx_lock);
-               printk(KERN_ERR PFX "%s: BUG! Tx Ring full when queue awake!\n",
-                      dev->name);
                return NETDEV_TX_BUSY;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to