Sfoglia il codice sorgente

[e1000] Ensure descriptor is fully written before sending packet

Reported-by: Mark McLoughlin <markmc@redhat.com>
tags/v0.9.8
Michael Brown 15 anni fa
parent
commit
5e1ef98469
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      src/drivers/net/e1000/e1000.c

+ 1
- 0
src/drivers/net/e1000/e1000.c Vedi File

@@ -588,6 +588,7 @@ e1000_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
588 588
 
589 589
 	/* Write new tail to NIC, making packet available for transmit
590 590
 	 */
591
+	wmb();
591 592
 	E1000_WRITE_REG ( hw, TDT, adapter->tx_tail );
592 593
 
593 594
 	return 0;

Loading…
Annulla
Salva