|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: BNXT_RE_DV |
| 4 | +section: 7 |
| 5 | +tagline: Verbs |
| 6 | +date: 2025-06-17 |
| 7 | +header: "Broadcom BNXT-RE Direct Verbs Manual" |
| 8 | +footer: bnxt_re |
| 9 | +--- |
| 10 | + |
| 11 | +# NAME |
| 12 | + |
| 13 | +bnxt_re_dv - Direct verbs for Broadcom RoCE (bnxt_re) devices |
| 14 | + |
| 15 | +# DESCRIPTION |
| 16 | + |
| 17 | +The libibverbs API is abstract and portable. For workloads that need to |
| 18 | +manage some of the RDMA HW resources directly, the bnxt_re provider |
| 19 | +exposes **direct verbs**. These are driver-specific routines that work |
| 20 | +together with user-registered queue memory and optional doorbell regions. |
| 21 | + |
| 22 | +To use these new interfaces, include `<infiniband/bnxt_re_dv.h>` and link |
| 23 | +against **libbnxt_re** (in addition to **libibverbs**). |
| 24 | + |
| 25 | +The following Direct Verbs are supported: |
| 26 | + |
| 27 | +**Doorbell regions** |
| 28 | + |
| 29 | +- **bnxt_re_dv_alloc_db_region**(3), **bnxt_re_dv_free_db_region**(3) allocate |
| 30 | + and release extra doorbell mapping regions. |
| 31 | +- **bnxt_re_dv_get_default_db_region**(3) returns the default doorbell page index |
| 32 | + and user-mapped doorbell address for the context. |
| 33 | + |
| 34 | +**User memory (umem)** |
| 35 | + |
| 36 | +- **bnxt_re_dv_umem_reg**(3) records a user virtual range (and optional dmabuf |
| 37 | + metadata) for later use when creating resources. The library does not pin or |
| 38 | + map the memory at registration time; mapping occurs when a resource that uses |
| 39 | + the umem is created. |
| 40 | +- **bnxt_re_dv_umem_dereg**(3) releases the registration. |
| 41 | + |
| 42 | +**Completion queues** |
| 43 | + |
| 44 | +- **bnxt_re_dv_create_cq**(3) creates a CQ backed by memory described by a prior |
| 45 | + **bnxt_re_dv_umem_reg**(3) handle and offset. |
| 46 | +- **bnxt_re_dv_destroy_cq**(3) destroys such a CQ. |
| 47 | + |
| 48 | +Applications may register one large buffer with **bnxt_re_dv_umem_reg**(3) and |
| 49 | +pass different offsets (aligned to the device page size) and lengths when |
| 50 | +creating individual CQs. |
| 51 | + |
| 52 | +# SEE ALSO |
| 53 | + |
| 54 | +**verbs**(7), |
| 55 | +**bnxt_re_dv_alloc_db_region**(3), |
| 56 | +**bnxt_re_dv_free_db_region**(3), |
| 57 | +**bnxt_re_dv_get_default_db_region**(3), |
| 58 | +**bnxt_re_dv_umem_reg**(3), |
| 59 | +**bnxt_re_dv_umem_dereg**(3), |
| 60 | +**bnxt_re_dv_create_cq**(3), |
| 61 | +**bnxt_re_dv_destroy_cq**(3) |
| 62 | + |
| 63 | +# AUTHORS |
| 64 | + |
| 65 | +Kalesh AP \<kalesh-anakkur.purayil@broadcom.com\>, |
| 66 | +Sriharsha Basavapatna \<sriharsha.basavapatna@broadcom.com\>, |
| 67 | +Selvin Xavier \<selvin.xavier@broadcom.com\> |
0 commit comments