Changeset 30443


Ignore:
Timestamp:
2012-02-11T16:11:56+01:00 (6 years ago)
Author:
juhosg
Message:

ramips: raeth: unmap DMA memory when a packet is received

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/drivers/net/ramips.c

    r30442 r30443  
    283283                /* Reuse the buffer on allocation failures */ 
    284284                if (new_skb) { 
     285                        /* TODO: convert to use dma_address_t */ 
     286                        dma_unmap_single(NULL, priv->rx[rx].rxd1, MAX_RX_LENGTH, 
     287                                         DMA_FROM_DEVICE); 
     288 
    285289                        skb_put(rx_skb, pktlen); 
    286290                        rx_skb->dev = dev; 
Note: See TracChangeset for help on using the changeset viewer.