<br><br><div class="gmail_quote">On Mon, May 12, 2008 at 4:44 PM, Sean Hefty <<a href="mailto:sean.hefty@intel.com">sean.hefty@intel.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> attr.rnr_retry = 7;<br>
<br>
Can you drop this to 6 and see if the behavior changes?</blockquote><div><br>That does not change the behavior.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="Ih2E3d"><br>
> recv_thread (void *arg)<br>
> {<br>
> struct ibv_cq *ev_cq;<br>
> void *ev_ctx;<br>
> int ret;<br>
><br>
><br>
> ret = ibv_get_cq_event(comp_channel, &ev_cq, &ev_ctx);<br>
> if (ret) {<br>
> return 1;<br>
> }<br>
><br>
> ibv_ack_cq_events(ev_cq, 1);<br>
><br>
> ret = ibv_req_notify_cq(ev_cq, 0);<br>
> if (ret) {<br>
> return 1;<br>
> }<br>
><br>
> while ((rv = ibv_poll_cq(cq, 1, &wc)) == 1) {<br>
> switch (wc.opcode) {<br>
> case IBV_WC_SEND: {<br>
> if (wc.status == IBV_WC_SUCCESS) {<br>
> if (sq_wr_id[head] != wc.wr_id) {<br>
> datasz = 0;<br>
> return 1;<br>
> }<br>
> } else {<br>
> retuen 1;<br>
<br>
</div> ^^^^^^<br>
Are you sure this is the code that's running?</blockquote><div><br>This is a cut-paste error. I just extracted the relevant code from the actual piece.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="Ih2E3d"><br>
> }<br>
> buf = (char *)send_data[head];<br>
> arg = (u64)send_arg[head];<br>
> sq_wr_id[head] = 0;<br>
> if (head == 19) {//max_send_wr -1<br>
> head = 0;<br>
> } else {<br>
> head += 1;<br>
> }<br>
> break;<br>
> }<br>
> }<br>
><br>
> }<br>
<br>
</div>Where do you re-post receives?</blockquote><div><br>I just pasted the send part of the code. Should I send the receive code too? <br><br>Thanks<br>Ganesh<br></div></div><br>