Skip to content
  • Michael Buesch's avatar
    b43: Optimize DMA buffers · bdceeb2d
    Michael Buesch authored
    
    
    In the old days we used one slot per frame. But when we changed that to 2,
    we didn't raise the overall slot count. Which resulted in an effective
    division of two to the number of slots.
    
    Double the number of TX slots, so we have an effective hardware queue
    of 128 frames per QoS queue.
    
    Also optimize the TX header cache handling. We don't need a cached TX header
    for slots that will never carry an actual header.
    So we reduce the memory consumption of the cache by 50%.
    
    So as a net result we end up with more or less the same memory usage before
    and after this patch (except a few tiny meta structures), but have twice
    the number of TX slots available.
    
    Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    bdceeb2d