]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Fix indexing of mlx5_irq
authorShay Drory <shayd@nvidia.com>
Mon, 17 Apr 2023 07:57:50 +0000 (10:57 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 23 May 2023 05:38:06 +0000 (22:38 -0700)
commit1da438c0ae02396dc5018b63237492cb5908608d
tree407ccbe6f923c78574919373895f693e823895de
parentef8c063cf88e1a3d99ab4ada1cbab5ba7248a4f2
net/mlx5: Fix indexing of mlx5_irq

After the cited patch, mlx5_irq xarray index can be different then
mlx5_irq MSIX table index.
Fix it by storing both mlx5_irq xarray index and MSIX table index.

Fixes: 3354822cde5a ("net/mlx5: Use dynamic msix vectors allocation")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c