• Gerhard Engleder's avatar
    tsnep: Rework RX buffer allocation · dbadae92
    Gerhard Engleder authored
    
    
    Refill RX queue in batches of descriptors to improve performance. Refill
    is allowed to fail as long as a minimum number of descriptors is active.
    Thus, a limited number of failed RX buffer allocations is now allowed
    for normal operation. Previously every failed allocation resulted in a
    dropped frame.
    
    If the minimum number of active descriptors is reached, then RX buffers
    are still reused and frames are dropped. This ensures that the RX queue
    never runs empty and always continues to operate.
    
    Prework for future XDP support.
    Signed-off-by: default avatarGerhard Engleder <gerhard@engleder-embedded.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    dbadae92
tsnep_ethtool.c 13.3 KB