]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Improve RX buffer error handling.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 18 Nov 2019 08:56:36 +0000 (03:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:13:28 +0000 (17:13 -0800)
commit2e7313ef275639c1130737479ccdd11fe687f285
treeab4d8cb31cf565c508d14aac24fb44039aa2d233
parente920883c1b191dde3b104f9b9281a1bf40d50c8e
bnxt_en: Improve RX buffer error handling.

When hardware reports RX buffer errors, the latest 57500 chips do not
require reset.  The packet is discarded by the hardware and the
ring will continue to operate.

Also, add an rx_buf_errors counter for this type of error.  It can help
the user to identify if the aggregation ring is too small.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c