[e1000] Ensure descriptor is fully written before sending packet
authorMichael Brown <mcb30@etherboot.org>
Tue, 23 Jun 2009 17:36:01 +0000 (18:36 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 23 Jun 2009 17:36:01 +0000 (18:36 +0100)
Reported-by: Mark McLoughlin <markmc@redhat.com>
src/drivers/net/e1000/e1000.c

index b6af86f..faca1e0 100644 (file)
@@ -588,6 +588,7 @@ e1000_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
 
        /* Write new tail to NIC, making packet available for transmit
         */
 
        /* Write new tail to NIC, making packet available for transmit
         */
+       wmb();
        E1000_WRITE_REG ( hw, TDT, adapter->tx_tail );
 
        return 0;
        E1000_WRITE_REG ( hw, TDT, adapter->tx_tail );
 
        return 0;