netdev
[Top] [All Lists]

Re: [PATCH] iphase fix.

To: davej@xxxxxxxxxxxxxxxxx
Subject: Re: [PATCH] iphase fix.
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Thu, 15 May 2003 02:43:10 -0400
Cc: Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <3EC3359D.5050207@xxxxxxxxx>
Organization: none
References: <200305150417.h4F4HTRA025809@xxxxxxxxxxxxxxx> <3EC3359D.5050207@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk
Jeff Garzik wrote:
         dev_kfree_skb(skb);
-    else
-        netif_wake_queue(dev);
+    netif_wake_queue(dev);
     LEAVE("iph5526_send_packet");



This appears to revert a fix.

You only want to wake the queue if you have room to queue another skb.


Actually, I'm wrong.

But it could still use some looking-at. You don't want to stop_queue at the beginning of send_packet and wake_queue at the end. Instead, the queue should be awakened in the Tx completion routine, and the stop_queue should be moved from the beginning to the end of the function.

        Jeff




<Prev in Thread] Current Thread [Next in Thread>