enum ib_qp_attr_mask { IB_QP_STATE = 1, IB_QP_EN_SQD_ASYNC_NOTIFY = (1<<1), IB_QP_REMOTE_ATOMIC_FLAGS = (1<<3), Should IB_QP_REMOTE_ATOMIC_FLAGS be 1<<2 and so on for the bits after that one ? Also, should ib_get_special_qp be called ib_create_special_qp ? -- Hal