]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[velocity] Correct direction of endianness conversion
authorMichael Brown <mcb30@ipxe.org>
Tue, 4 Aug 2026 07:46:24 +0000 (08:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 4 Aug 2026 07:46:24 +0000 (08:46 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/velocity.c

index 373714293b38c03c6ce84299045922774aa396bb..7464f4c281568635803d43d7854a184498fe39c3 100644 (file)
@@ -566,7 +566,7 @@ static void velocity_poll_rx ( struct velocity_nic *vlc ) {
                rx_idx = ( vlc->rx_cons % VELOCITY_RXDESC_NUM );
                desc = &vlc->rx_ring[rx_idx];
 
-               des0 = cpu_to_le32 ( desc->des0 );
+               des0 = le32_to_cpu ( desc->des0 );
 
                /* Return if descriptor still in use */
                if ( des0 & VELOCITY_DES0_OWN )