<!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>
<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></BODY></HTML>