]> 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)
commitd7915d509f69f0ac17686678e47cc8e04a7c0cbf
tree340ca277308e70b24c0c03417c4f9e05ec83fcbf
parent1690ed0ccb469cf8c03a4ecd2036dff94b50e9c9
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