mirror of
https://github.com/ipxe/ipxe
synced 2026-02-04 06:59:59 +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 ) ) );
|
dest = ( ena->tx.sq.llqe + ( index * sizeof ( *llqe ) ) );
|
||||||
for ( i = 0 ; i < ( sizeof ( *llqe ) / sizeof ( *src ) ); i++ )
|
for ( i = 0 ; i < ( sizeof ( *llqe ) / sizeof ( *src ) ); i++ )
|
||||||
writeq ( *(src++), dest++ );
|
writeq ( *(src++), dest++ );
|
||||||
|
wmb();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Increment producer counter */
|
/* Increment producer counter */
|
||||||
|
|||||||
Reference in New Issue
Block a user