]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Set all field of mlx5_irq before inserting it to the xarray
authorShay Drory <shayd@nvidia.com>
Wed, 16 Jun 2021 15:59:05 +0000 (18:59 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Aug 2021 03:56:52 +0000 (20:56 -0700)
commit76da03a6c26635643dc68350ef99e9faf1132030
tree1151e21fe98ced32df8d3bf62213dc9c3bdfef6c
parent935e152b059fc803a45cee75e4b2de31810682bf
net/mlx5: Set all field of mlx5_irq before inserting it to the xarray

Currently irq->pool is set after the irq is insert to the xarray.
Set irq->pool before the irq is inserted to the xarray.

Fixes: 561937b08e3c ("net/mlx5: Allocating a pool of MSI-X vectors for SFs")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c