diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2019-11-25 00:39:34 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-03 15:45:31 -0400 |
commit | 53bb802315b32bfb2a5a464dfc1f24b5610cad6d (patch) | |
tree | dfd8b5209611b0a593f331f55a7448e9b3d90273 /drivers/infiniband/hw/bnxt_re | |
parent | 93a3d05f9d68015f425c8f019c3ba1f489a0c0cd (diff) | |
download | linux-53bb802315b32bfb2a5a464dfc1f24b5610cad6d.tar.gz |
RDMA/bnxt_re: Report more number of completion vectors
Report the the data path MSIx vectors allocated by driver as number of
completion vectors. One interrupt vector is used for Control path. So
reporting one less than the total number of MSIx vectors allocated by the
driver.
Link: https://lore.kernel.org/r/1574671174-5064-7-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index e7e8a0f49464..793c97251588 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -677,7 +677,7 @@ static int bnxt_re_register_ib(struct bnxt_re_dev *rdev) bnxt_qplib_get_guid(rdev->netdev->dev_addr, (u8 *)&ibdev->node_guid); - ibdev->num_comp_vectors = 1; + ibdev->num_comp_vectors = rdev->num_msix - 1; ibdev->dev.parent = &rdev->en_dev->pdev->dev; ibdev->local_dma_lkey = BNXT_QPLIB_RSVD_LKEY; |