mirror of
https://github.com/ipxe/ipxe
synced 2026-01-26 17:31:17 +03:00
[ena] Add memory barrier after writing to on-device memory
Ensure that writes to on-device memory have taken place before writing to the doorbell register. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1125,6 +1125,7 @@ static int ena_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
|
||||
dest = ( ena->tx.sq.llqe + ( index * sizeof ( *llqe ) ) );
|
||||
for ( i = 0 ; i < ( sizeof ( *llqe ) / sizeof ( *src ) ); i++ )
|
||||
writeq ( *(src++), dest++ );
|
||||
wmb();
|
||||
}
|
||||
|
||||
/* Increment producer counter */
|
||||
|
||||
Reference in New Issue
Block a user