Skip to content

Commit fa8fad9

Browse files
chandramohan-akulajgunthorpe
authored andcommitted
RDMA/bnxt_re: Enable pacing support for the user apps
Report the pacing capability to the user applications. Link: https://lore.kernel.org/r/1689742977-9128-5-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Chandramohan Akula <chandramohan.akula@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 586e613 commit fa8fad9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4075,6 +4075,8 @@ int bnxt_re_alloc_ucontext(struct ib_ucontext *ctx, struct ib_udata *udata)
40754075
goto cfail;
40764076
}
40774077
uctx->shpage_mmap = &entry->rdma_entry;
4078+
if (rdev->pacing.dbr_pacing)
4079+
resp.comp_mask |= BNXT_RE_UCNTX_CMASK_DBR_PACING_ENABLED;
40784080

40794081
rc = ib_copy_to_udata(udata, &resp, min(udata->outlen, sizeof(resp)));
40804082
if (rc) {

include/uapi/rdma/bnxt_re-abi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ enum {
5353
BNXT_RE_UCNTX_CMASK_HAVE_CCTX = 0x1ULL,
5454
BNXT_RE_UCNTX_CMASK_HAVE_MODE = 0x02ULL,
5555
BNXT_RE_UCNTX_CMASK_WC_DPI_ENABLED = 0x04ULL,
56+
BNXT_RE_UCNTX_CMASK_DBR_PACING_ENABLED = 0x08ULL,
5657
};
5758

5859
enum bnxt_re_wqe_mode {

0 commit comments

Comments
 (0)