]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: SHAMPO, Rework header allocation loop
authorDragos Tatulea <dtatulea@nvidia.com>
Thu, 7 Nov 2024 19:43:57 +0000 (21:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 03:28:18 +0000 (19:28 -0800)
commitab4219db89da1d019ef45675e4cd56a6841bbc1e
treed16dbf927c85e19500dd1cec0c253f20c4d80423
parent945ca432bfd0788b960f8f721594dae4fc3c02c1
net/mlx5e: SHAMPO, Rework header allocation loop

The current loop code was based on the assumption
that there can be page leftovers from previous function calls.

This patch changes the allocation loop to make it clearer how
pages get allocated every MLX5E_SHAMPO_WQ_HEADER_PER_PAGE headers.
This change has no functional implications.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241107194357.683732-13-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c