]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: SHAMPO, Change frag page setup order during allocation
authorDragos Tatulea <dtatulea@nvidia.com>
Thu, 7 Nov 2024 19:43:55 +0000 (21:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 03:28:18 +0000 (19:28 -0800)
commit4f56868b7132bb3c7e5a2c1930b6402718248a35
tree9739aee55cae53af962fba27cf307891eb4d6e9e
parent1a4b5885770401b7e8de6546760686dcd2d9b784
net/mlx5e: SHAMPO, Change frag page setup order during allocation

Now that the UMR allocation has been simplified, it is no longer
possible to have a leftover page from a previous call to
mlx5e_build_shampo_hd_umr().

This patch simplifies the code by switching the order of operations:
first take the frag page and then increment the index. This is more
straightforward and it also paves the way for dropping the info
array.

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