| 1 |
.\" -*- nroff -*- |
| 2 |
.\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md |
| 3 |
.\" |
| 4 |
.TH CREATE_RWQ_IND_TBL 3 2016-07-27 libibverbs "Libibverbs Programmer's Manual" |
| 5 |
.SH "NAME" |
| 6 |
ibv_create_rwq_ind_table, ibv_destroy_rwq_ind_table \- create or destroy a Receive Work Queue Indirection Table (RWQ IND TBL). |
| 7 |
.SH "SYNOPSIS" |
| 8 |
.nf |
| 9 |
.B #include <infiniband/verbs.h> |
| 10 |
.sp |
| 11 |
.BI "struct ibv_rwq_ind_table *ibv_create_rwq_ind_table(struct ibv_context " "*context," |
| 12 |
.BI " struct ibv_rwq_ind_table_init_attr " "*init_attr" ); |
| 13 |
.sp |
| 14 |
.BI "int ibv_destroy_rwq_ind_table(struct ibv_rwq_ind_table " "*rwq_ind_table" ); |
| 15 |
.fi |
| 16 |
.SH "DESCRIPTION" |
| 17 |
.B ibv_create_rwq_ind_table() |
| 18 |
creates a RWQ IND TBL associated with the ibv_context |
| 19 |
.I context\fR. |
| 20 |
The argument |
| 21 |
.I init_attr |
| 22 |
is an ibv_rwq_ind_table_init_attr struct, as defined in <infiniband/verbs.h>. |
| 23 |
.PP |
| 24 |
.nf |
| 25 |
struct ibv_rwq_ind_table_init_attr { |
| 26 |
.in +8 |
| 27 |
uint32_t log_ind_tbl_size; /* Log, base 2, of Indirection table size */ |
| 28 |
struct ibv_wq **ind_tbl; /* Each entry is a pointer to Receive Work Queue */ |
| 29 |
uint32_t comp_mask; /* Identifies valid fields. Use ibv_ind_table_init_attr_mask */ |
| 30 |
.in -8 |
| 31 |
}; |
| 32 |
.fi |
| 33 |
.PP |
| 34 |
The function |
| 35 |
.B ibv_create_rwq_ind_table() |
| 36 |
will create a RWQ IND TBL that holds a table of Receive Work Queue. |
| 37 |
For further usage of the created object see below |
| 38 |
.I NOTES\fR. |
| 39 |
.PP |
| 40 |
.B ibv_destroy_rwq_ind_table() |
| 41 |
destroys the RWQ IND TBL |
| 42 |
.I rwq_ind_table\fR. |
| 43 |
.SH "RETURN VALUE" |
| 44 |
.B ibv_create_rwq_ind_table() |
| 45 |
returns a pointer to the created RWQ IND TBL, or NULL if the request fails. |
| 46 |
.PP |
| 47 |
.B ibv_destroy_rwq_ind_table() |
| 48 |
returns 0 on success, or the value of errno on failure (which indicates the failure reason). |
| 49 |
.SH "NOTES" |
| 50 |
The created object should be used as part of |
| 51 |
.I ibv_create_qp_ex() |
| 52 |
to enable dispatching of incoming packets based on some RX hash configuration. |
| 53 |
.SH "SEE ALSO" |
| 54 |
.BR ibv_create_wq (3), |
| 55 |
.BR ibv_modify_wq (3), |
| 56 |
.BR ibv_create_qp_ex (3), |
| 57 |
.SH "AUTHORS" |
| 58 |
.TP |
| 59 |
Yishai Hadas <[email protected]> |