net/mlx5: Refactor completion IRQ request/release handlers in EQ layer
authorMaher Sanalla <msanalla@nvidia.com>
Mon, 12 Jun 2023 12:34:27 +0000 (15:34 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 17:53:50 +0000 (10:53 -0700)
commit54b2cf41b853e04ea09a2a075e4a6dc30638c298
tree45ed22b6af9b83c613c2c377be3c264692bbe0a1
parentc8a0245c3937d302a52c9d6b54de44b302e78265
net/mlx5: Refactor completion IRQ request/release handlers in EQ layer

Break the completion IRQ request/release functions into per-vector
handlers for both PCI devices and SFs in the EQ layer.

On EQ table creation, loop over all vectors and request an IRQ for each
one using the new per-vector functions. Perform the symmetrical change
when releasing IRQs on EQ table cleanup.

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