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)
commit19b3751ffa713d04290effb26fe01009010f2206
treeab4d8cb31cf565c508d14aac24fb44039aa2d233
parent41136ab35888c4007c6aad2f86e35afb97003e69
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