devices/e1000/e1000_main-2.6.24-ethercat.c
changeset 1154 04bcd38cf8dc
parent 1152 30f168c7f74f
child 1325 16aacb421bd4
equal deleted inserted replaced
1153:352a471d388f 1154:04bcd38cf8dc
  3423 	}
  3423 	}
  3424 
  3424 
  3425 	/* need: count + 2 desc gap to keep tail from touching
  3425 	/* need: count + 2 desc gap to keep tail from touching
  3426 	 * head, otherwise try next time */
  3426 	 * head, otherwise try next time */
  3427 	if (unlikely(e1000_maybe_stop_tx(netdev, tx_ring, count + 2))) {
  3427 	if (unlikely(e1000_maybe_stop_tx(netdev, tx_ring, count + 2))) {
  3428 		spin_unlock_irqrestore(&tx_ring->tx_lock, flags);
  3428 		if (!adapter->ecdev) {
       
  3429 			spin_unlock_irqrestore(&tx_ring->tx_lock, flags);
       
  3430 		}
  3429 		return NETDEV_TX_BUSY;
  3431 		return NETDEV_TX_BUSY;
  3430 	}
  3432 	}
  3431 
  3433 
  3432 	if (unlikely(adapter->hw.mac_type == e1000_82547)) {
  3434 	if (unlikely(adapter->hw.mac_type == e1000_82547)) {
  3433 		if (unlikely(e1000_82547_fifo_workaround(adapter, skb))) {
  3435 		if (unlikely(e1000_82547_fifo_workaround(adapter, skb))) {