<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=850280511-09032010>In order to allow 
the ndrping to work also with RDMA reads, the following fix is 
needed.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=850280511-09032010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=850280511-09032010>This patch should 
also be applied to the branch.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=850280511-09032010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=850280511-09032010>Thanks</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=850280511-09032010>Tzachi</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Index: 
hw/mlx4/user/hca/cq.c<BR>===================================================================<BR>--- 
hw/mlx4/user/hca/cq.c (revision 5646)<BR>+++ 
hw/mlx4/user/hca/cq.c (working copy)<BR>@@ -130,7 +130,7 
@@<BR>   printf(PFX "local QP operation err 
"<BR>          "(QPN %06x, WQE 
index %x, vendor syndrome %02x, 
"<BR>          "opcode = 
%02x)\n",<BR>-         
htonl(cqe->my_qpn), 
htonl(cqe->wqe_index),<BR>+         
htonl(cqe->my_qpn), 
htons(cqe->wqe_index),<BR>          
cqe->vendor_err,<BR>          
cqe->owner_sr_opcode & ~MLX4_CQE_OWNER_MASK);<BR> <BR>Index: 
ulp/nd/user/NdEndpoint.cpp<BR>===================================================================<BR>--- 
ulp/nd/user/NdEndpoint.cpp (revision 5646)<BR>+++ 
ulp/nd/user/NdEndpoint.cpp (working copy)<BR>@@ -686,10 +686,10 
@@<BR>     wr.p_next = NULL;<BR>     
wr.wr_id = (ULONG_PTR)pResult;<BR>     wr.wr_type = 
Type;<BR>-    if ( pResult->BytesTransferred <= 
m_MaxInlineSize )<BR>-     wr.send_opt = IB_SEND_OPT_INLINE; 
<BR>- else<BR>-     wr.send_opt = 
0;<BR>+    if ( (pResult->BytesTransferred <= 
m_MaxInlineSize) && Type != 
WR_RDMA_READ)<BR>+        wr.send_opt = 
IB_SEND_OPT_INLINE; <BR>+    
else<BR>+        wr.send_opt = 
0;<BR>     if( !(Flags & ND_OP_FLAG_SILENT_SUCCESS) 
)<BR>         wr.send_opt |= 
IB_SEND_OPT_SIGNALED;<BR>     if( Flags & 
ND_OP_FLAG_READ_FENCE )</FONT></DIV></BODY></HTML>