]> git.baikalelectronics.ru Git - kernel.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)
commitf3a03b2cbe48595c33aff50c67a5b73b53984ab6
tree340ca277308e70b24c0c03417c4f9e05ec83fcbf
parent5b62fe52097210f3a8bb7905e01b671211fc766f
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