]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ix(4): Report RX errors as sum of all RX error counters
authorPiotr Pietruszewski <piotr.pietruszewski@intel.com>
Wed, 3 Mar 2021 01:21:58 +0000 (17:21 -0800)
committerEric Joyner <erj@FreeBSD.org>
Thu, 11 Mar 2021 01:07:03 +0000 (17:07 -0800)
commitadc22165c08851f70e87f324ad55dd624b11a409
tree8ad94778f37e5cd48e50bf3e2b00ca40ac295f90
parentc637a66be46cca2bef968202af5a4970586908d0
ix(4): Report RX errors as sum of all RX error counters

HW keeps track of RX errors using several counters, each for
specific type of errors. Report RX errors to OS as sum
of all those counters: CRC errors, illegal bytes, checksum,
length, undersize, fragment, oversize and jabber errors.

Also, add new "rx_errs" sysctl in the dev.ix.N.mac_stats tree. This is
to provide an another way to display the sum of RX errors.

Signed-off-by: Piotr Pietruszewski <piotr.pietruszewski@intel.com>
Reviewed By: erj
Tested By: gowtham.kumar.ks@intel.com
Approved by: re (gjb)
Sponsored By: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D27191

(cherry picked from commit afb1aa4e6df245d38fd2ba683fa521d5dabe8392)
(cherry picked from commit 8fa11f89225695c185a8a92c7530e270e77552f8)
sys/dev/ixgbe/if_ix.c
sys/dev/ixgbe/ixgbe.h