Skip to contentSkip to conversation

iphase fix.

PATCH Jeff Garzik 2 participants 3 messages May 15, 2003 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · Linux Kernel Mailing List

ChangeSet 1.1127, 2003/05/14 20:44:02-07:00, [email protected]

[PATCH] iphase fix.

This went into 2.4 nearly a year back with the wonderfully descriptive "Fix from maintainer" comment.

diff -Nru a/drivers/net/fc/iph5526.c b/drivers/net/fc/iph5526.c

drivers/net/fc/iph5526.c line 2988

Quoted 7 lines
drivers/net/fc/iph5526.c +1 -2
@@ -2984,8 +2984,7 @@
 	 */
 	if ((type == ETH_P_ARP) || (status == 0))
 		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.

Jeff

#2 lore raw
Quoted 11 lines · Jeff Garzik

Review

Quoted 5 lines
         dev_kfree_skb(skb);
(quoted diff) +1 -2
-    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

#3 lore raw
Quoted 10 lines · Jeff Garzik
Quoted 8 lines · Jeff Garzik

Review

Quoted 5 lines
        dev_kfree_skb(skb);
(quoted diff) +1 -2
-    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.

Quoted 6 lines

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.

Bring it up with whoever merged it into 2.4..

Dave