[openib-general] [PATCH] IPoIB receive wc error

Shirley Ma xma at us.ibm.com
Sun Mar 26 15:12:53 PST 2006


This is the update patch, that reuses exsting code.

Signed-off-by: Shirley Ma <xma at us.ibm.com>

diff -urN infiniband/ulp/ipoib/ipoib_ib.c 
infiniband-rx_error/ulp/ipoib/ipoib_ib.c
--- infiniband/ulp/ipoib/ipoib_ib.c     2006-03-26 11:57:15.853035656 
-0800
+++ infiniband-rx_error/ulp/ipoib/ipoib_ib.c    2006-03-26 
15:05:53.491493088 -0800
@@ -196,11 +196,9 @@
                                        ipoib_warn(priv, "failed recv 
event "
                                                   "(status=%d, wrid=%d 
vend_err %x)\n",
                                                   wc->status, wr_id, 
wc->vendor_err);
-                               dma_unmap_single(priv->ca->dma_device, 
addr,
-                                                IPOIB_BUF_SIZE, 
DMA_FROM_DEVICE);
-                               dev_kfree_skb_any(skb);
-                               priv->rx_ring[wr_id].skb = NULL;
-                               return;
+                               ++priv->stats.rx_errors;
+                               /* ignore this packet, reuse the old 
buffer */
+                               goto repost;
                        }
 
                        /*



Thanks
Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20060326/d6b8fc22/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: infiniband-rx_error.patch
Type: application/octet-stream
Size: 682 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20060326/d6b8fc22/attachment.obj>


More information about the general mailing list