Skip to content

Posts Tagged ‘Q_Key ’

Since in RDMA any UD QP can send/receive a packet to/from any other UD QP in the subnet, there is a need for a protection mechanism to allow a UD QP to specify from which other UD QPs it wishes...

int ibv_poll_cq(struct ibv_cq *cq, int num_entries, struct ibv_wc *wc);int ibv_poll_cq(struct ibv_cq *cq, int num_entries, struct ibv_wc *wc); Description ibv_poll_cq() polls Work Completions from a Completion Queue (CQ). A Work Completion indicates that a Work Request in a Work Queue, and...

int ibv_post_send(struct ibv_qp *qp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr);int ibv_post_send(struct ibv_qp *qp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr); Description ibv_post_send() posts a linked list of Work Requests (WRs) to the Send Queue of a Queue Pair (QP). ibv_post_send() go...

int ibv_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, enum ibv_qp_attr_mask attr_mask, struct ibv_qp_init_attr *init_attr);int ibv_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, enum ibv_qp_attr_mask attr_mask, struct ibv_qp_init_attr *init_attr); Description ibv_query_qp() returns the attributes and current values of a Queue Pair. struct ibv_qp_attr describes...

int ibv_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, int attr_mask);int ibv_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, int attr_mask); Description ibv_modify_qp() modifies the attributes of a Queue Pair. The changed attributes describe the send and receive attributes of the QP. In UC...

int ibv_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr);int ibv_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr); Description ibv_query_port() returns the attributes of a port of an RDMA device context. Here is the full description of struct ibv_port_attr: Name Protocol...