• Thomas Falcon's avatar
    ibmvnic: Fix TX descriptor tracking again · ecba616e
    Thomas Falcon authored
    Sorry, the previous change introduced a race condition between
    transmit completion processing and tracking TX descriptors. If a
    completion is received before the number of descriptors is logged,
    the number of descriptors will be add but not removed. After enough
    times, this could halt the transmit queue forever.
    
    Log the number of descriptors used by a transmit before sending.
    I stress tested the fix on two different systems running over the
    weekend without any issues.
    Signed-off-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ecba616e
ibmvnic.c 127 KB