mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:01:52 +02:00
ramips: raeth: unmap DMA memory when a packet is received
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30443 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cd69289b3e
commit
cce4c079c4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user