<!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><SPAN class=723180410-10032010><FONT color=#0000ff size=2
face=Arial>Applied on 2727 to the trunk.</FONT></SPAN></DIV>
<DIV><SPAN class=723180410-10032010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=723180410-10032010><FONT color=#0000ff size=2
face=Arial>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=723180410-10032010><FONT color=#0000ff size=2
face=Arial>Tzachi</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Tzachi
Dar<BR><B>Sent:</B> Tuesday, March 09, 2010 1:07 PM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw] Patch: Don't use inline for
RDMA reads<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BLOCKQUOTE></BODY></HTML>