• Michael Chan's avatar
    bnxt_en: Eliminate unnecessary RX resets. · 8d4bd96b
    Michael Chan authored
    Currently, the driver will schedule RX ring reset when we get a buffer
    error in the RX completion record.  These RX buffer errors can be due
    to normal out-of-buffer conditions or a permanent error in the RX
    ring.  Because the driver cannot distinguish between these 2
    conditions, we assume all these buffer errors require reset.
    
    This is very disruptive when it is just a normal out-of-buffer
    condition.  Newer firmware will now monitor the rings for the permanent
    failure and will send a notification to the driver when it happens.
    This allows the driver to reset only when such a notification is
    received.  In environments where we have predominently out-of-buffer
    conditions, we now can avoid these unnecessary resets.
    Reviewed-by: default avatarEdwin Peer <edwin.peer@broadcom.com>
    Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8d4bd96b
bnxt.c 341 KB