]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Reduce unnecessary message log during RX errors.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 4 Oct 2020 19:23:00 +0000 (15:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 21:41:05 +0000 (14:41 -0700)
commit4ed7e001ee31ea1b8299a3b712730375ef3484fd
treeca8fa5af97386e62d076f10492a782ef4e4a2a0a
parent12f168a9cf3cd05f8702302d65cbd4cc6722f388
bnxt_en: Reduce unnecessary message log during RX errors.

There is logic in the RX path to detect unexpected handles in the
RX completion.  We'll print a warning and schedule a reset.  The
next expected handle is then set to 0xffff which is guaranteed to
not match any valid handle.  This will force all remaining packets in
the ring to be discarded before the reset.  There can be hundreds of
these packets remaining in the ring and there is no need to print the
warnings for these forced errors.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c