bnxt: add more ethtool standard stats
authorJakub Kicinski <kuba@kernel.org>
Mon, 19 Apr 2021 20:02:42 +0000 (13:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 23:22:23 +0000 (16:22 -0700)
commit37434782d63f89de5b9c383a449b6a82dc3fa4fb
tree577fd97c4fd85abe05c562973bf552f71d1dce8e
parent9b8fd2c9f14b029dbcc4a6fc79419f17c4980ff4
bnxt: add more ethtool standard stats

Michael suggest a few more stats we can expose.

$ ethtool -S eth0 --groups eth-mac
Standard stats for eth0:
eth-mac-FramesTransmittedOK: 902623288966
eth-mac-FramesReceivedOK: 28727667047
eth-mac-FrameCheckSequenceErrors: 1
eth-mac-AlignmentErrors: 0
eth-mac-OutOfRangeLengthField: 0
$ ethtool -S eth0 | grep '\(fcs\|align\|oor\)'
     rx_fcs_err_frames: 1
     rx_align_err_frames: 0
     tx_fcs_err_frames: 0

Suggested-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c