[openib-general] error modifying QP capabilities

Sayantan Sur surs at cse.ohio-state.edu
Tue Dec 27 15:52:33 PST 2005


Hi,

I am trying to modify the QP capabilities (after the QP has been created
and transitioned to IBV_QPS_RTS successfully). I am getting an return
error value of 22. Is there any other conditions I need to take care of
before modifying the QP? I am using Arbel (MemFree) cards with firmware
version 5.1.0. The OpenIB svn revision number is 4594 (on linux 2.6.14)

<--- Snippet --->
struct ibv_qp_attr attr;
int ret = 0;

memset(&attr, 0, sizeof(struct ibv_qp_attr));

attr.cap.max_send_wr = 128; /* initial value was 32 */
attr.cap.max_recv_wr = 0;
attr.cap.max_send_sge = 1;
attr.cap.max_recv_sge = 1;
attr.cap.max_inline_data = 128;
    
if((ret = ibv_modify_qp(c->qp_hndl, &attr, IBV_QP_CAP)) != 0) {
    error_abort_all(GEN_EXIT_ERR, "Couldn't modify QP size, ret %d", ret)
}
<--- /Snippet --->

TIA,
Sayantan.


-- 
http://www.cse.ohio-state.edu/~surs



More information about the general mailing list