• Felix Fietkau's avatar
    mt76: use a per rx queue page fragment cache · c12128ce
    Felix Fietkau authored
    Using the NAPI or netdev frag cache along with other drivers can lead to
    32 KiB pages being held for a long time, despite only being used for
    very few page fragments.
    
    This can happen if the driver grabs one or two fragments for rx ring
    refill, while other drivers use (and free up) the remaining fragments.
    The 32 KiB higher-order page can only be freed once all users have freed
    their fragments.
    
    Depending on the traffic patterns, this can waste a lot of memory and
    look a lot like a memory leak.
    Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
    c12128ce
mt76.h 16.5 KB