<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=199304117-13112008><FONT face=Arial color=#0000ff
size=2>Applied in 1760,1761.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Leonid
Keller<BR><B>Sent:</B> Thursday, November 13, 2008 5:54 PM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw] correcting a side-effect of
a previous bugfix<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<P><FONT face=Arial><FONT size=2><SPAN
class=844164415-13112008>1361</SPAN> fix added a bug: now all
application, creating QP with zero receive QP size, will fail with send
completion error.</FONT></FONT></P>
<P><FONT face=Arial size=2>This patch fixes that.</FONT></P></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Index:
V:/svn/winib/trunk/hw/mthca/kernel/mthca_qp.c<BR>===================================================================<BR>---
V:/svn/winib/trunk/hw/mthca/kernel/mthca_qp.c (revision 3466)<BR>+++
V:/svn/winib/trunk/hw/mthca/kernel/mthca_qp.c (revision 3467)<BR>@@
-1374,6 +1374,12 @@<BR> if (qp->transport == MLX &&
cap->max_recv_sge + 2 >
(u32)dev->limits.max_sg)<BR> return
-EINVAL;<BR> <BR>+ /* Enable creating zero-sized QPs */<BR>+ if
(!cap->max_recv_wr)<BR>+ cap->max_recv_wr = 1;<BR>+ if
(!cap->max_send_wr)<BR>+ cap->max_send_wr =
1;<BR>+ <BR> if (mthca_is_memfree(dev))
{<BR> qp->rq.max = cap->max_recv_wr
?<BR> roundup_pow_of_two(cap->max_recv_wr) :
0;<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>