]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Alloc rq drop page based on calculated page_shift
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 23 Feb 2026 20:41:50 +0000 (22:41 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 26 Feb 2026 09:54:23 +0000 (10:54 +0100)
commit0285cc3dac1b4ceb3dacdfce43627d41d649cf47
tree327aa43ed0eec6d62039efa599317ed24a4df5f0
parent3a145cf492a3a154afb288cd460adf6721614eab
net/mlx5e: Alloc rq drop page based on calculated page_shift

An upcoming patch will allow setting the page order for RX
pages to be greater than 0. Make sure that the drop page will
also be allocated with the right size when that happens.

Take extra care when calculating the drop page size to
account for page_shift < PAGE_SHIFT which can happen for xsk.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260223204155.1783580-11-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c