mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
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 <dtatulea@nvidia.com> Reviewed-by: Carolina Jubran <cjubran@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260403090927.139042-2-tariqt@nvidia.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
dfecb0c5af
commit
1047e14b44
@@ -8,7 +8,7 @@
|
||||
|
||||
struct mlx5e_xsk_param {
|
||||
u16 headroom;
|
||||
u16 chunk_size;
|
||||
u32 chunk_size;
|
||||
bool unaligned;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user