net/mlx5: Use xarray to store and manage completion IRQs
authorMaher Sanalla <msanalla@nvidia.com>
Sun, 18 Jun 2023 16:23:24 +0000 (19:23 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 17:53:50 +0000 (10:53 -0700)
commitc8a0245c3937d302a52c9d6b54de44b302e78265
treedfe7046bb4d403682d71dd5f4952d6266e5cec9c
parenta1772de78d7303e33517d1741e0fce1c7247bec4
net/mlx5: Use xarray to store and manage completion IRQs

Use xarray to store the completion IRQs instead of a fixed-size allocated
array as not all completion IRQs will be requested on driver load, but
rather on demand when an EQ is created. The xarray offers more scalability,
reduced memory overhead, and provides the ability to dynamically resize the
array when needed.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-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/eq.c