Allocates a QP.
#include <rdma/rdma_cma.h> int rdma_create_qp(struct rdma_cm_id *id, struct ibv_pd *pd, struct ibv_qp_init_attr *qp_init_attr);
The rdma_create_qp function allocates a QP associated with a specified rdma_cm_id, and transitions it for sending and receiving.
id | Specifies the communication identifier to destroy. |
pd | Specifies the protection domain for the QP. |
qp_init_attr | Specifies the initial QP attributes. |
0 | On success. |
-1 | Error, see errno. |
-EINVAL | If the id, pd, or qp_init_attr parameter is NULL or bad parameter in ibv_qp_init_attr such as, cap.max_inline_data limited to 64 for Chelsio Boards. |
-ENOMEM | There is not enough space to allocate by malloc. |