]> git.hungrycats.org Git - linux/commit
net/mlx5e: Reduce stack use reading PCIe congestion thresholds
authorRatheesh Kannoth <rkannoth@marvell.com>
Thu, 21 May 2026 09:52:56 +0000 (15:22 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 May 2026 21:03:06 +0000 (14:03 -0700)
commite57516529a5bd9e228d1cd80b460fbc1c34bbea4
tree16179a5c0a7c8f51783f939f4766c417db6d8de8
parentbfea46abf62b61ad587c217d2938e970d4993153
net/mlx5e: Reduce stack use reading PCIe congestion thresholds

union devlink_param_value grew when U64 array parameters were added.
Keeping union devlink_param_value val[4] in
mlx5e_pcie_cong_get_thresh_config() exceeded the compiler's
-Wframe-larger-than limit.

Reuse one union: call devl_param_driverinit_value_get() once per
MLX5 PCIe congestion threshold and assign each vu16 to the
corresponding mlx5e_pcie_cong_thresh member.

Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Link: https://patch.msgid.link/20260521095303.2395584-3-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c