aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabia Manaa <rabiam@nvidia.com>2024-03-17 15:58:53 +0200
committerMichael Brown <mcb30@ipxe.org>2024-03-17 22:55:32 +0000
commitc11734eee0fcaaf49f6f3f0342f928e1e5232560 (patch)
treea7bfd473aeb3deab8622137c30e7ff38d6b9e424
parentfa4bda617d5d2a714d0f8abfba451fd87f11a33e (diff)
downloadipxe-c11734eee0fcaaf49f6f3f0342f928e1e5232560.zip
ipxe-c11734eee0fcaaf49f6f3f0342f928e1e5232560.tar.gz
ipxe-c11734eee0fcaaf49f6f3f0342f928e1e5232560.tar.bz2
[golan] Use ETH_HLEN for inline header size
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>
-rwxr-xr-xsrc/drivers/infiniband/golan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/infiniband/golan.c b/src/drivers/infiniband/golan.c
index ce02a86..68a7c4f 100755
--- a/src/drivers/infiniband/golan.c
+++ b/src/drivers/infiniband/golan.c
@@ -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);