linux-mips
[Top] [All Lists]

pcnet32.c bug?

To: linux-mips <linux-mips@oss.sgi.com>
Subject: pcnet32.c bug?
From: Brian Murphy <brian@murphy.dk>
Date: Wed, 29 May 2002 12:46:57 +0200
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020214
If I don't apply the following patch to pcnet32.c then the network connection
on my vr5000 box is extremely jerky. It also seems quite sensible to have a
dma sync operation here.

any comments?

/Brian
--- drivers/net/pcnet32.c       19 Mar 2002 16:40:55 -0000      1.1.1.1.2.1.2.6
+++ drivers/net/pcnet32.c       29 May 2002 09:57:33 -0000      1.13.4.2
@@ -1343,6 +1351,10 @@
                if (!rx_in_place) {
                    skb_reserve(skb,2); /* 16 byte align */
                    skb_put(skb,pkt_len);       /* Make room */
+                    pci_dma_sync_single(lp->pci_dev, 
+                                   lp->rx_skbuff[entry]->tail, 
+                                   pkt_len,
+                                   PCI_DMA_FROMDEVICE);
                    eth_copy_and_sum(skb,
                                     (unsigned char 
*)(lp->rx_skbuff[entry]->tail),
                                     pkt_len,0);
<Prev in Thread] Current Thread [Next in Thread>