projects
/
openwrt
/
staging
/
noltari.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
617954c
)
ramips: raeth: unmap DMA memory when a packet is received
author
Gabor Juhos
<juhosg@openwrt.org>
Sat, 11 Feb 2012 15:11:56 +0000
(15:11 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Sat, 11 Feb 2012 15:11:56 +0000
(15:11 +0000)
SVN-Revision: 30443
target/linux/ramips/files/drivers/net/ramips.c
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips.c
b/target/linux/ramips/files/drivers/net/ramips.c
index 338d200bd774747d7a8a1afdfdcfa8bd0a892e5c..17ef00bdcd621532a1afe4c9f57098375582595d 100644
(file)
--- a/
target/linux/ramips/files/drivers/net/ramips.c
+++ b/
target/linux/ramips/files/drivers/net/ramips.c
@@
-282,6
+282,10
@@
ramips_eth_rx_hw(unsigned long ptr)
new_skb = netdev_alloc_skb(dev, MAX_RX_LENGTH + NET_IP_ALIGN);
/* Reuse the buffer on allocation failures */
if (new_skb) {
+ /* TODO: convert to use dma_address_t */
+ dma_unmap_single(NULL, priv->rx[rx].rxd1, MAX_RX_LENGTH,
+ DMA_FROM_DEVICE);
+
skb_put(rx_skb, pktlen);
rx_skb->dev = dev;
rx_skb->protocol = eth_type_trans(rx_skb, dev);