]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: SHAMPO: Reorganize mlx5_rq_shampo_alloc
authorSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Jun 2025 14:14:33 +0000 (17:14 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 01:34:12 +0000 (18:34 -0700)
commitaf4312c4c9c11da84b13b3aa8f472ab287cf1f0b
tree29f48b82060afde611efff1b203c14a881cd415e
parenta202f24b08587021a39eade5aa5444d5714689fb
net/mlx5e: SHAMPO: Reorganize mlx5_rq_shampo_alloc

Drop redundant SHAMPO structure alloc/free functions.

Gather together function calls pertaining to header split info, pass
header per WQE (hd_per_wqe) as parameter to those function to avoid use
before initialization future mistakes.

Allocate HW GRO related info outside of the header related info scope.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250616141441.1243044-5-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c