net/mlx5: Change IRQ storage logic from static to dynamic
authorShay Drory <shayd@nvidia.com>
Tue, 23 Feb 2021 09:38:52 +0000 (11:38 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Jun 2021 03:57:59 +0000 (20:57 -0700)
commitfc63dd2a85be1f37fb822594101e9219b7be7460
treed460bc05a3a05ceb07e397ea2213d094a7e4386f
parent2d74524c0106abe2025228111466f2f4b63d420a
net/mlx5: Change IRQ storage logic from static to dynamic

Store newly created IRQs in the xarray DB instead of a static array,
so we will be able to store only IRQs which are being used.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c