• Ido Yariv's avatar
    wl1271: Fix TX queue low watermark handling · 2fe33e8c
    Ido Yariv authored
    The number of entries in the TX queue is compared to the low watermark
    value each time TX completion interrupts are handled.
    However, the fact that a TX completion arrived does not necessarily mean
    there are any less skbs in the TX queue.
    
    In addition, a TX completion interrupt does not necessarily mean that there
    are any new available TX blocks. Thus, queuing TX work when the low
    watermark is reached might not be needed.
    
    Fix this by moving the low watermark handling to the TX work function,
    and avoid queuing TX work in this case.
    Signed-off-by: default avatarIdo Yariv <ido@wizery.com>
    Reviewed-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
    Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
    2fe33e8c
wl1271_tx.c 12.4 KB