[ofw] [PATCH] ipoib
Reuven Amitai
reuven at mellanox.co.il
Wed Apr 9 06:24:57 PDT 2008
Hi,
the following patch fixes wrong status field.
Thanks, Reuven.
Index: ulp/ipoib/kernel/ipoib_port.c
===================================================================
--- ulp/ipoib/kernel/ipoib_port.c (revision 1047)
+++ ulp/ipoib/kernel/ipoib_port.c (working copy)
@@ -1854,7 +1854,7 @@
for( p_wc = p_done_wc_list; p_wc; p_wc = p_wc->p_next )
{
- CL_ASSERT( p_wc->wc_type == IB_WC_RECV );
+ CL_ASSERT( p_wc->status != IB_WCS_SUCCESS || p_wc->wc_type
== IB_WC_RECV );
p_desc = (ipoib_recv_desc_t*)(uintn_t)p_wc->wr_id;
recv_cnt++;
@@ -3935,7 +3935,7 @@
while( p_wc )
{
cl_perf_start( SendComp );
- CL_ASSERT( p_wc->wc_type == IB_WC_SEND );
+ CL_ASSERT( p_wc->status != IB_WCS_SUCCESS ||
p_wc->wc_type == IB_WC_SEND );
p_packet = (NDIS_PACKET*)(uintn_t)p_wc->wr_id;
CL_ASSERT( p_packet );
CL_ASSERT( IPOIB_PORT_FROM_PACKET( p_packet ) ==
p_port );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080409/94318e68/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_port.patch
Type: application/octet-stream
Size: 849 bytes
Desc: ipoib_port.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080409/94318e68/attachment.obj>
More information about the ofw
mailing list