]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[golan] Use ETH_HLEN for inline header size 1174/head
authorRabia Manaa <rabiam@nvidia.com>
Sun, 17 Mar 2024 13:58:53 +0000 (15:58 +0200)
committerMichael Brown <mcb30@ipxe.org>
Sun, 17 Mar 2024 22:55:32 +0000 (22:55 +0000)
The driver does not correctly handle very short transmitted packets
such as EAPoL-Start where the entire DMA content lies within the
current send work queue entry inline header length of 18 bytes.

Fix by reducing the inline header length to the Ethernet frame header
length of 14 bytes.

Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/golan.c

index ce02a867fd6a948f11cb4828e9fd60702bf4ae34..68a7c4f5d8ada33eea3ea1ea171e23df5dcf27b7 100755 (executable)
@@ -2502,7 +2502,7 @@ static mlx_status shomron_fill_eth_send_wqe ( struct ib_device *ibdev,
        }
 
 #define SHOMRON_GENERATE_CQE 0x3
-#define SHOMRON_INLINE_HEADERS_SIZE 18
+#define SHOMRON_INLINE_HEADERS_SIZE ETH_HLEN
 #define SHOMRON_INLINE_HEADERS_OFFSET 32
        MLX_FILL_2 ( &eth_wqe->ctrl, 0, opcode, FLEXBOOT_NODNIC_OPCODE_SEND,
                        wqe_index, wqe_index & 0xFFFF);