I'm new to rdma programming and am currently setting up a simple client/server using ib verbs and rdma cma, but have hit a wall. My server runs and waits for the connection, but my client never connects because it fails at rdma_create_qp(). I'm not sure what info may be needed to help solve this but i'll edit in the needed info as requested.(currently snipets of the relative information as they appear in my code)
qp_init_attr.send_cq = cq;
qp_init_attr.recv_cq = cq;
qp_init_attr.qp_type = IBV_QPT_RC;
qp_init_attr.cap.max_send_wr = 16;
qp_init_attr.cap.max_recv_wr = 16;
qp_init_attr.cap.max_send_sge = 8;
qp_init_attr.cap.max_recv_sge = 8;
if(rdma_create_qp(cm_id, pd, &qp_init_attr)){
fprintf(stderr, "Error, rdma_create_qp() failed: %s\n", strerror(errno));
return -1;
}