]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Shift control IRQ to the last index
authorShay Drory <shayd@nvidia.com>
Thu, 19 Aug 2021 13:18:57 +0000 (16:18 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:10:57 +0000 (18:10 -0700)
commit3663ad34bc707fc85492f4d83a313f5df84718d4
tree340ca277308e70b24c0c03417c4f9e05ec83fcbf
parent575baa92fd463cb202447fe14770532cae55715a
net/mlx5: Shift control IRQ to the last index

Control IRQ is the first IRQ vector. This complicates handling of
completion irqs as we need to offset them by one.
in the next patch, there are scenarios where completion and control EQs
will share the same irq. for example: functions with single IRQ. To ease
such scenarios, we shift control IRQ to the end of the irq array.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/infiniband/hw/mlx5/odp.c
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
include/linux/mlx5/driver.h