Changeset 35953


Ignore:
Timestamp:
2013-03-11T03:29:53+01:00 (5 years ago)
Author:
nbd
Message:

cns3xxx: ethernet - clean the tx ring before refilling the rx ring to reduce memory pressure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c

    r35952 r35953  
    719719        } 
    720720 
    721         cns3xxx_alloc_rx_buf(sw, received); 
    722  
    723         rx_ring->cur_index = i; 
    724  
    725         wmb(); 
    726         enable_rx_dma(sw); 
    727  
    728721        spin_lock_bh(&tx_lock); 
    729722        eth_complete_tx(sw); 
    730723        spin_unlock_bh(&tx_lock); 
     724 
     725        cns3xxx_alloc_rx_buf(sw, received); 
     726 
     727        rx_ring->cur_index = i; 
     728 
     729        wmb(); 
     730        enable_rx_dma(sw); 
    731731 
    732732        return received; 
Note: See TracChangeset for help on using the changeset viewer.