#include <infiniband/verbs.h> struct int ibv_modify_wq(struct ibv_wq *wq, struct ibv_wq_attr *wq_attr);
struct ibv_wq_attr {
uint32_t attr_mask; /* Use enum ibv_wq_attr_mask */
enum ibv_wq_state wq_state; /* Move to this state */
enum ibv_wq_state curr_wq_state; /* Assume this is the current state */
uint32_t flags; /* Flags values to modify, use enum ibv_wq_flags */
uint32_t flags_mask; /* Which flags to modify, use enum ibv_wq_flags */
};
The function ibv_modify_wq() will modify the WQ based on the given wq_attr->attr_mask