devices/8139too-2.6.17-ethercat.c
changeset 474 9850c3fb3865
parent 473 e34754cd973e
child 495 88c597598bbc
equal deleted inserted replaced
473:e34754cd973e 474:9850c3fb3865
  1974 		        dev->name, dirty_tx, tp->cur_tx);
  1974 		        dev->name, dirty_tx, tp->cur_tx);
  1975 		dirty_tx += NUM_TX_DESC;
  1975 		dirty_tx += NUM_TX_DESC;
  1976 	}
  1976 	}
  1977 #endif /* RTL8139_NDEBUG */
  1977 #endif /* RTL8139_NDEBUG */
  1978 
  1978 
  1979 	if (dev != rtl_ec_net_dev) {
  1979 	/* only wake the queue if we did work, and the queue is stopped */
  1980 		/* only wake the queue if we did work, and the queue is stopped */
  1980 	if (tp->dirty_tx != dirty_tx) {
  1981 		if (tp->dirty_tx != dirty_tx) {
  1981 		tp->dirty_tx = dirty_tx;
  1982 			tp->dirty_tx = dirty_tx;
  1982 		mb();
  1983 			mb();
  1983 
       
  1984 		if (dev != rtl_ec_net_dev) {
  1984 			netif_wake_queue (dev);
  1985 			netif_wake_queue (dev);
  1985 		}
  1986 		}
  1986 	}
  1987 	}
  1987 
  1988 
  1988 	/* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
  1989 	/* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/