From: Dragos Tatulea Date: Fri, 3 Apr 2026 09:09:23 +0000 (+0300) Subject: net/mlx5e: XSK, Increase size for chunk_size param X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1047e14b44edecbbab02a86514a083b8db9fde4d;p=thirdparty%2Fkernel%2Flinux.git net/mlx5e: XSK, Increase size for chunk_size param When 64K pages are used, chunk_size can take the 64K value which doesn't fit in u16. This results in overflows that are detected in mlx5e_mpwrq_log_wqe_sz(). Increase the type to u32 to fix this. Signed-off-by: Dragos Tatulea Reviewed-by: Carolina Jubran Signed-off-by: Tariq Toukan Link: https://patch.msgid.link/20260403090927.139042-2-tariqt@nvidia.com Signed-off-by: Paolo Abeni --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/params.h b/drivers/net/ethernet/mellanox/mlx5/core/en/params.h index 9b1a2aed17c3f..275f9be53a34b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/params.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/params.h @@ -8,7 +8,7 @@ struct mlx5e_xsk_param { u16 headroom; - u16 chunk_size; + u32 chunk_size; bool unaligned; };