What is supposed to be filled in the remote_atomic_flags member of struct ib_qp_attr? Would it make sense to make the type of that field be an enum instead of just int (so it's a little bit more self-documenting)? - R.