When I try to submit an RDMA FETCH_AND_ADD or CMP_AND_SWAP , the ibv_post_send() function fails, with Errno set to "Invalid argument". I have no such problems with RDMA READ/WRITE.
I developed my entire code using RDMA CM (so no manual QP transitioning). The queue pair is RC, and Atomic is enabled at the responder queue pair, and the memory regions are registered with atomic access. I suspected that there might be the source of this problem, so I wrote a small program using libibcm where I transition the QPs manually and set the flags fro atomic operations: qp_attr->qp_access_flags = IBV_ACCESS_REMOTE_ATOMIC; qp_attr->max_rd_atomic = <something greater than zero>; qp_attr->max_dest_rd_atomic = <something greater than zero>; But still, the same error (invalid argument). I'd appreciate your help. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
