OSDN Git Service

net/mlx5: Removing rmap per IRQ
authorShay Drory <shayd@nvidia.com>
Tue, 23 Feb 2021 09:08:26 +0000 (11:08 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Jun 2021 03:57:58 +0000 (20:57 -0700)
commit2de61538377c6d417c5c18e12309fe7bf098f2c9
treebde0cae191d3c6c7d5935236da8a15db7aeee82c
parent652e3581f2483a4965ea79a4dbce153fe0f39d1f
net/mlx5: Removing rmap per IRQ

In next patches, IRQs will be requested according to demand, instead of
statically on driver boot.
Also, currently, rmap is managed by the IRQ layer. rmap management will
move out from the IRQ layer in future patches.

Therefore, we want to remove the IRQ from the rmap, when IRQ is destroyed,
instead of removing all the IRQs from the rmap when irq_table is destroyed.

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/pci_irq.c