RDMA/bnxt_re: Report more number of completion vectors
authorSelvin Xavier <selvin.xavier@broadcom.com>
Mon, 25 Nov 2019 08:39:34 +0000 (00:39 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Jan 2020 19:45:31 +0000 (15:45 -0400)
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>
drivers/infiniband/hw/bnxt_re/main.c

index e7e8a0f..793c972 100644 (file)
@@ -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;