net/mlx5: IRQ, consolidate irq and affinity mask allocation
authorSaeed Mahameed <saeedm@nvidia.com>
Fri, 9 Jun 2023 19:10:27 +0000 (12:10 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 21 Aug 2023 17:55:15 +0000 (10:55 -0700)
commit9e9ff54e63b4bc4e2436112f008ddb9e3aed4910
treec4ac4cf543d67855088650bf8559ae1aedabfb2f
parentd7cea02a1fac70808423b6c7a64464ba3185f7a9
net/mlx5: IRQ, consolidate irq and affinity mask allocation

Consolidate the mlx5_irq and mlx5_irq->mask allocation, to simplify
error flows and to match the dealloctation sequence @irq_release for
symmetry.

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