I suspect that's the problem as I'm simply setting sge.length to rdma read size. <div><div>Thanks for catching it!<br></div><div><div><br><div><br><div class="gmail_quote">On Jan 28, 2008 5:14 AM, Jack Morgenstein <<a href="mailto:jackm@dev.mellanox.co.il">jackm@dev.mellanox.co.il</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">On Sunday 27 January 2008 15:06, Dotan Barak wrote:<br>> Rajouri Jammu wrote:<br>> > I'm using rdma_cm and I don't set the qp_access_flags explicitly.<br>
> ><br>> > I presume they are set correctly since non-zero length rdma reads<br>> > complete successfully. I have also verified the data.<br>> ><br>> > the only place I set the privileges is when registering the memory<br>
> > region and I have them set at<br>> > IBV_ACCESS_LOCAL_WRITE, _REMOTE_READ and _REMOTE_WRITE<br><br></div>To send perform a zero-byte RDMA-read/write, you should assemble a WQE with<br>no scatter/gather entries (see IBSPEC 1.2, volume 1, section <a href="http://11.4.1.1" target="_blank">11.4.1.1</a>,<br>
table 94 -- Work Request Modifier Matrix, footnote b). A s/g entry with its length<br>field = 0 is interpreted as requesting 2 gigabytes.<br><br>Is this the problem?<br><font color="#888888"><br>- Jack<br></font></blockquote>
</div><br></div></div></div></div>