• Francois Romieu's avatar
    ipg: plug Tx completion leak · 0da1b995
    Francois Romieu authored
    The Tx skb release could not free more than one skb per call.
    Add it to the fact that the xmit handler does not check for
    a queue full condition and you have a recipe to leak quickly.
    
    Let's release every pending Tx descriptor which has been given
    back to the host CPU by the network controller. The xmit handler
    suggests that it is done through the IPG_TFC_TFDDONE bit.
    
    Remove the former "curr" computing: it does not produce anything
    usable in its current form.
    Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
    0da1b995
ipg.c 61.3 KB