net/mlx5: Refcount mlx5_irq with integer
authorShay Drory <shayd@nvidia.com>
Tue, 22 Jun 2021 11:20:16 +0000 (14:20 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 11 Aug 2021 18:14:31 +0000 (11:14 -0700)
commit2d0b41a3767941b53160c940cdaf596a99f50fb6
treec669a1d138ca0e74cd4adfc4eb5dd2868469705a
parent68fefb70898a8d123d1e40b2ae02bc907c460d7d
net/mlx5: Refcount mlx5_irq with integer

Currently, all access to mlx5 IRQs are done undere a lock. Hance, there
isn't a reason to have kref in struct mlx5_irq.
Switch it to integer.

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