[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:
Michael Brown
2025-10-17 12:34:03 +01:00
parent c296747d0e
commit 0ae5e25de2

View File

@@ -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 */