[ofa-general] OpenIB development query

Bharath Ramesh bramesh at vt.edu
Wed Aug 15 16:56:31 PDT 2007


I am trying to develop some code using OFED distribution. I am trying to
create QP but its not able to be created. I am not sure of the reasons
why. The snippet of the code would be something like this. I am not sure
if this what I am doing is correct.

memset (&qp_init_attr, 0, sizeof (struct ibv_qp_init_attr));
qp_init_attr.recv_cq = ib_recv_cq;
qp_init_attr.send_cq = ib_send_cq;
qp_init_attr.cap.max_recv_wr = IB_MAX_REQ;
qp_init_attr.cap.max_send_wr = IB_MAX_REQ;
qp_init_attr.cap.max_recv_sge = IB_MAX_REQ;
qp_init_attr.cap.max_send_sge = IB_MAX_REQ;
qp_init_attr.qp_type = IBV_QPT_RC;
ib_qp = ibv_create_qp (ib_pd, &qp_init_attr);

IB_MAX_REQ is set 1024.

Is there any maximum limit to the amount of max wr that I can set for a
QP.

Thanks,

Bharath

P.S: I am not subscribed to the list so if you could cc me in the reply
it would be much appreciated.

---
Bharath Ramesh       <bramesh at vt.edu>       http://people.cs.vt.edu/~bramesh




More information about the general mailing list