aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cq.c
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2020-11-30 05:13:06 -0800
committerJason Gunthorpe <jgg@nvidia.com>2020-12-07 15:43:42 -0400
commitc63e1c4dfc33d1bdae395ee8fbcbfad4830b12c0 (patch)
treeb1880e7afc23d09b0bd1b78b47f54b0bf62d1394 /drivers/infiniband/core/cq.c
parentRDMA/i40iw: Replace atomic_add_return(1, ..) (diff)
downloadlinux-dev-c63e1c4dfc33d1bdae395ee8fbcbfad4830b12c0.tar.xz
linux-dev-c63e1c4dfc33d1bdae395ee8fbcbfad4830b12c0.zip
RDMA/bnxt_re: Fix max_qp_wrs reported
While creating qps, the driver adds one extra entry to the sq size passed by the ULPs in order to avoid queue full condition. When ULPs creates QPs with max_qp_wr reported, driver creates QP with 1 more than the max_wqes supported by HW. Create QP fails in this case. To avoid this error, reduce 1 entry in max_qp_wqes and report it to the stack. Link: https://lore.kernel.org/r/1606741986-16477-1-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core/cq.c')
0 files changed, 0 insertions, 0 deletions