---
name: "ibv_create_rwq_ind_table"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/ibv_create_rwq_ind_table"
---

# ibv\_create\_rwq\_ind\_table(3)

create or destroy a Receive Work Queue Indirection Table (RWQ IND TBL).

## NAME

ibv\_create\_rwq\_ind\_table, ibv\_destroy\_rwq\_ind\_table  - create or destroy a Receive Work Queue Indirection Table (RWQ IND TBL).

## SYNOPSIS

```
#include <infiniband/verbs.h>

struct ibv_rwq_ind_table *ibv_create_rwq_ind_table(struct ibv_context *context,
                                                           struct ibv_rwq_ind_table_init_attr *init_attr);

int ibv_destroy_rwq_ind_table(struct ibv_rwq_ind_table *rwq_ind_table);
```

## DESCRIPTION

**ibv\_create\_rwq\_ind\_table()** creates a RWQ IND TBL associated with the ibv\_context *context.* The argument *init\_attr* is an ibv\_rwq\_ind\_table\_init\_attr struct, as defined in \<infiniband/verbs.h\>.

```
struct ibv_rwq_ind_table_init_attr {
uint32_t        log_ind_tbl_size;     /* Log, base 2, of Indirection table size */
struct          ibv_wq **ind_tbl;     /* Each entry is a pointer to Receive Work Queue */
uint32_t        comp_mask;            /* Identifies valid fields. Use ibv_ind_table_init_attr_mask */
};
```

The function **ibv\_create\_rwq\_ind\_table()** will create a RWQ IND TBL that holds a table of Receive Work Queue. For further usage of the created object see below *NOTES.*

**ibv\_destroy\_rwq\_ind\_table()** destroys the RWQ IND TBL *rwq\_ind\_table.*

## RETURN VALUE

**ibv\_create\_rwq\_ind\_table()** returns a pointer to the created RWQ IND TBL, or NULL if the request fails.

**ibv\_destroy\_rwq\_ind\_table()** returns 0 on success, or the value of errno on failure (which indicates the failure reason).

## NOTES

The created object should be used as part of *ibv\_create\_qp\_ex()* to enable dispatching of incoming packets based on some RX hash configuration.

## SEE ALSO

[**ibv\_create\_wq**(3)](/ibv_create_wq/3.md), [**ibv\_modify\_wq**(3)](/ibv_modify_wq/3.md), [**ibv\_create\_qp\_ex**(3)](/ibv_create_qp_ex/3.md),

## AUTHORS

- Yishai Hadas \<yishaih@mellanox.com\>
