• Thomas Falcon's avatar
    ibmvnic: Fix overflowing firmware/hardware TX queue · 142c0ac4
    Thomas Falcon authored
    Use a counter to track the number of outstanding transmissions sent
    that have not received completions. If the counter reaches the maximum
    number of queue entries, stop transmissions on that queue. As we receive
    more completions from firmware, wake the queue once the counter reaches
    an acceptable level.
    
    This patch prevents hardware/firmware TX queue from filling up and
    and generating errors.  Since incorporating this fix, internal testing
    has reported that these firmware errors have stopped.
    Signed-off-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    142c0ac4
ibmvnic.h 24.6 KB