netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mv643xx_eth: Unmap DMA buffers in receive path
@ 2006-09-12 18:22 Dale Farnsworth
  2006-09-13  2:05 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Dale Farnsworth @ 2006-09-12 18:22 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev, Manish Lachwani

From: Dale Farnsworth <dale@farnsworth.org>

Fix a missing call to dma_unmap_single() in the receive path.  Without
this call, errors have been observed on non-cache-coherent systems.

Signed-off-by Dale Farnsworth <dale@farnsworth.org>

---

 drivers/net/mv643xx_eth.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.10/drivers/net/mv643xx_eth.c
===================================================================
--- linux-2.6.10.orig/drivers/net/mv643xx_eth.c
+++ linux-2.6.10/drivers/net/mv643xx_eth.c
@@ -402,6 +402,8 @@ static int mv643xx_eth_receive_queue(str
 #else
 	while (eth_port_receive(mp, &pkt_info) == ETH_OK) {
 #endif
+		dma_unmap_single(NULL, pkt_info.buf_ptr, RX_SKB_SIZE,
+							DMA_FROM_DEVICE);
 		mp->rx_desc_count--;
 		received_packets++;
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-13 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-12 18:22 mv643xx_eth: Unmap DMA buffers in receive path Dale Farnsworth
2006-09-13  2:05 ` Jeff Garzik
2006-09-13 16:21   ` PATCH " Dale Farnsworth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).