This is the update patch, that reuses exsting code.

Signed-off-by: Shirley Ma <[EMAIL PROTECTED]>

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

Attachment: infiniband-rx_error.patch
Description: Binary data

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to