]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: XSK, Increase size for chunk_size param
authorDragos Tatulea <dtatulea@nvidia.com>
Fri, 3 Apr 2026 09:09:23 +0000 (12:09 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 Apr 2026 11:34:04 +0000 (13:34 +0200)
commit1047e14b44edecbbab02a86514a083b8db9fde4d
tree412c485c7cccdb5825a34acc51ce3c44bb1e6f17
parentdfecb0c5af3b07ebfa84be63a7a21bfc9e29a872
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>
drivers/net/ethernet/mellanox/mlx5/core/en/params.h