mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 19:38:37 +03:00
[realtek] Add missing cpu_to_le16()
Reported-by: Thomas Miletich <thomas.miletich@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -478,7 +478,7 @@ static void realtek_refill_rx ( struct realtek_nic *rtl ) {
|
|||||||
/* Populate receive descriptor */
|
/* Populate receive descriptor */
|
||||||
address = virt_to_bus ( iobuf->data );
|
address = virt_to_bus ( iobuf->data );
|
||||||
rx->address = cpu_to_le64 ( address );
|
rx->address = cpu_to_le64 ( address );
|
||||||
rx->length = RTL_RX_MAX_LEN;
|
rx->length = cpu_to_le16 ( RTL_RX_MAX_LEN );
|
||||||
wmb();
|
wmb();
|
||||||
rx->flags = ( cpu_to_le16 ( RTL_DESC_OWN ) |
|
rx->flags = ( cpu_to_le16 ( RTL_DESC_OWN ) |
|
||||||
( is_last ? cpu_to_le16 ( RTL_DESC_EOR ) : 0 ) );
|
( is_last ? cpu_to_le16 ( RTL_DESC_EOR ) : 0 ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user