]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Static NQ depth allocation
authorNaresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Mon, 24 Aug 2020 18:14:34 +0000 (11:14 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 12:30:43 +0000 (09:30 -0300)
commitf56b09022cbf65379b5205b675057b87cdb5e827
treeed5242fac8c2527fc83a65d09e5e517daf3c162b
parent506601d577d0887af72f288615855b62dd0ffae4
RDMA/bnxt_re: Static NQ depth allocation

At first, driver allocates memory for NQ based on qplib_ctx->cq_count and
qplib_ctx->srqc_count.  Later when creating ring, it uses a static value
of 128K -1.

Fixing this with a static value for now.

Fixes: 2e008d1a0ec7 ("RDMA/bnxt_re: Refactor net ring allocation function")
Link: https://lore.kernel.org/r/1598292876-26529-5-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c