diff options
| author | Konstantin Taranov <[email protected]> | 2024-04-12 08:47:36 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-04-16 10:29:47 +0000 |
| commit | 23f59f4e837bba9db8d25ae85b8455d53b23665b (patch) | |
| tree | fb23e7752b7e8e8dfb6c9e4e9c1cfff0e21e5bbb /drivers/infiniband/hw/mana/device.c | |
| parent | RDMA/rxe: Return the correct errno (diff) | |
| download | kernel-23f59f4e837bba9db8d25ae85b8455d53b23665b.tar.gz kernel-23f59f4e837bba9db8d25ae85b8455d53b23665b.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Long Li <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
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); |
