Commit 2617428
committed
bnxt_re/lib: Direct Verbs: Support CQ and QP verbs
The following Direct Verb (DV) APIs have been implemented in
this patch.
CQ Direct Verbs:
----------------
- bnxt_re_dv_create_cq():
Create a CQ of requested size (cqe). The application must have
already registered this memory using bnxt_re_dv_umem_reg().
The CQ umem-handle and umem-offset provided by the application
are passed to the driver. Save the CQ-handle returned by the driver.
- bnxt_re_dv_destroy_cq():
Pass the CQ-handle to the driver and destroy the DV_CQ.
QP Direct Verbs:
----------------
- bnxt_re_dv_create_qp():
Create a QP using specified params (struct bnxt_re_dv_qp_init_attr).
The application must have already registered SQ/RQ memory using
bnxt_re_dv_umem_reg(). The SQ/RQ umem-handle and umem-offset provided
by the application are passed to the driver. Save the QP-handle
returned by the driver.
- bnxt_re_dv_destroy_qp():
Pass the QP-handle to the driver and destroy the DV_QP.
- bnxt_re_dv_modify_qp():
Modify QP attributes for the DV_QP specified by the QP-handle.
- bnxt_re_dv_query_qp():
Return QP attributes for the DV_QP specified by the QP-handle.
Note:
-----
Some applications might want to allocate memory for all resources of a
given type (CQ/QP) in one big chunk and then register that entire
memory once using dv_umem_reg(). At the time of creating each individual
resource, the application should pass a specific offset/length in the
umem registered memory.
Signed-off-by: Sriharsha Basavapatna <[email protected]>
Co-developed-by: Kalesh AP <[email protected]>
Signed-off-by: Kalesh AP <[email protected]>
Co-developed-by: Selvin Xavier <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>1 parent 55fc707 commit 2617428
File tree
9 files changed
+606
-4
lines changed- providers/bnxt_re
9 files changed
+606
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | | - | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
66 | 108 | | |
67 | 109 | | |
68 | 110 | | |
| |||
72 | 114 | | |
73 | 115 | | |
74 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
75 | 126 | | |
76 | 127 | | |
77 | 128 | | |
| |||
0 commit comments