[ofw] RE: [PATCH] ipoib

Fab Tillier ftillier at windows.microsoft.com
Wed Apr 9 09:53:43 PDT 2008


Does this change imply that the HCA driver doesn't return the WR type on an error completion?  Does it really not have that information (i.e. is the WQE no longer accessible)?

-Fab

From: ofw-bounces at lists.openfabrics.org [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Reuven Amitai
Sent: Wednesday, April 09, 2008 6:25 AM
To: ofw at lists.openfabrics.org
Subject: [ofw] [PATCH] ipoib

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/8b13f041/attachment.html>


More information about the ofw mailing list