Download RDMA Aware Networks Programming User Manual
Transcript
Rev 1.7
union {
struct ibv_exp_send_wr *send_wr;
struct ibv_recv_wr *recv_wr;
};
} item;
struct ibv_exp_task *next;
uint32_t
comp_mask; /* reserved for future growth (must be 0) */
};
The task type is defined by:
IBV_EXP_TASK_SEND
IBV_EXP_TASK_RECV
To support the new work requests, the struct ibv_exp_send_wr is expanded with
union {
struct {
uint64_t remote_addr;
uint32_t rkey;
} rdma;
struct {
uint64_t remote_addr;
uint64_t compare_add;
uint64_t swap;
uint32_t rkey;
} atomic;
struct {
struct ibv_cq *cq;
int32_t cq_count;
} cqe_wait;
struct {
struct ibv_qp *qp;
int32_t wqe_count;
} wqe_enable;
} task;
The calc operation is also defined in ibv_exp_send_wr by the union:
union {
struct {
enum ibv_exp_calc_op
calc_op;
enum ibv_exp_calc_data_type data_type;
enum ibv_exp_calc_data_size data_size;
} calc;
} op;
In addition, in the field exp_send_flags in ibv_exp_send_wr the flag IBV_EXP_SEND_WITH_CALC indicates the presence of a reduction operation, and IBV_EXP_SEND_WAIT_EN_LAST
is used to signal the last wait task posted for a given CQ in the current task list.
For ibv_exp_calc_data_type the types
Mellanox Technologies
215