<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I was trying to run sample example to to RDS RDMA communication. But I can't make it work. Following thing works great on without "--rdma" on rds_tcp stack. I do have infiniband and "rds_ping" is working on it.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">If you have any other sample code which can run RDS RDMA please give me the pointers.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">On Server:</div><div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace">./a.out --rdma -s 192.168.16.2</font><br></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">On client</div><div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace">./a.out --rdma -s 192.168.16.2 -c 192.168.16.1</font><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">And the Client says it sent the packet over RDMA but Server prints blank payload and then exits. While client is waiting on the <font face="courier new, monospace">recvmsg()</font> call.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This is probably because of the following code</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><font face="courier new, monospace">156: if (msg.msg_controllen) {</font></div><div><font face="courier new, monospace">157: rc = do_rdma_read(sock, &msg, buf);</font></div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Server never gets non-zero "<font face="courier new, monospace">msg.msg_controllen</font>" and it never goes and runs "<font face="courier new, monospace">do_rdma_read()</font>".</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Please help.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Thanks,</div><div style="font-family:arial,sans-serif;font-size:13px">-Milind</div></div>