devices/8139too-2.6.17-ethercat.c
changeset 474 9850c3fb3865
parent 473 e34754cd973e
child 495 88c597598bbc
--- a/devices/8139too-2.6.17-ethercat.c	Thu Nov 02 19:08:06 2006 +0000
+++ b/devices/8139too-2.6.17-ethercat.c	Fri Nov 03 10:00:08 2006 +0000
@@ -1976,11 +1976,12 @@
 	}
 #endif /* RTL8139_NDEBUG */
 
-	if (dev != rtl_ec_net_dev) {
-		/* only wake the queue if we did work, and the queue is stopped */
-		if (tp->dirty_tx != dirty_tx) {
-			tp->dirty_tx = dirty_tx;
-			mb();
+	/* only wake the queue if we did work, and the queue is stopped */
+	if (tp->dirty_tx != dirty_tx) {
+		tp->dirty_tx = dirty_tx;
+		mb();
+
+		if (dev != rtl_ec_net_dev) {
 			netif_wake_queue (dev);
 		}
 	}