• Lennert Buytenhek's avatar
    mv643xx_eth: avoid dropping tx lock during transmit reclaim · a418950c
    Lennert Buytenhek authored
    By moving DMA unmapping during transmit reclaim back under the netif
    tx lock, we avoid the situation where we read the DMA address and buffer
    length from the descriptor under the lock and then not do anything with
    that data after dropping the lock on platforms where the DMA unmapping
    routines are all NOPs (which is the case on all ARM platforms that
    mv643xx_eth is used on at least).
    
    This saves two uncached reads, which makes a small but measurable
    performance difference in routing benchmarks.
    Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
    a418950c
mv643xx_eth.c 65.5 KB