diff options
| author | Konstantin Taranov <kotaranov@microsoft.com> | 2024-04-12 11:47:36 +0300 | 
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2024-04-16 13:29:47 +0300 | 
| commit | 23f59f4e837bba9db8d25ae85b8455d53b23665b (patch) | |
| tree | fb23e7752b7e8e8dfb6c9e4e9c1cfff0e21e5bbb /drivers/infiniband/hw/mana/device.c | |
| parent | dfcdb38b21e4fb92a49acdbdf6afa82c07c8eba0 (diff) | |
| download | linux-23f59f4e837bba9db8d25ae85b8455d53b23665b.tar.xz | |
RDMA/mana_ib: Use num_comp_vectors of ib_device
Use num_comp_vectors of struct ib_device instead of max_num_queues
from gdma_context.
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://lore.kernel.org/r/1712911656-17352-1-git-send-email-kotaranov@linux.microsoft.com
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mana/device.c')
| -rw-r--r-- | drivers/infiniband/hw/mana/device.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mana/device.c b/drivers/infiniband/hw/mana/device.c index 6fa902ee80a6..07e97de31886 100644 --- a/drivers/infiniband/hw/mana/device.c +++ b/drivers/infiniband/hw/mana/device.c @@ -74,7 +74,7 @@ static int mana_ib_probe(struct auxiliary_device *adev,  	 * num_comp_vectors needs to set to the max MSIX index  	 * when interrupts and event queues are implemented  	 */ -	dev->ib_dev.num_comp_vectors = 1; +	dev->ib_dev.num_comp_vectors = mdev->gdma_context->max_num_queues;  	dev->ib_dev.dev.parent = mdev->gdma_context->dev;  	ret = mana_gd_register_device(&mdev->gdma_context->mana_ib);  | 
