]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Allocate command stats with xarray
authorShay Drory <shayd@nvidia.com>
Thu, 19 Jan 2023 07:10:50 +0000 (09:10 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jul 2023 18:37:29 +0000 (11:37 -0700)
commitb90ebfc018b087ba1e4981b298b58733236ff296
treedd3305421bbd8791286aefe269538996c341fad8
parent06cd555f73caec515a14d42ef052221fa2587ff9
net/mlx5: Allocate command stats with xarray

Command stats is an array with more than 2K entries, which amounts to
~180KB. This is way more than actually needed, as only ~190 entries
are being used.

Therefore, replace the array with xarray.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
include/linux/mlx5/driver.h