]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixl(4): Report RX errors as sum of all RX error counters
authorKrzysztof Galazka <krzysztof.galazka@intel.com>
Wed, 3 Mar 2021 01:33:11 +0000 (17:33 -0800)
committerEric Joyner <erj@FreeBSD.org>
Wed, 3 Mar 2021 01:37:04 +0000 (17:37 -0800)
commit9f99061ef9c95b171fc92d34026222bb5e052337
treea1111d04de3d8d7baef80866fb37bb836e08c92e
parentb3fce46a3eac600935f3aac2b224a83defcf1cb3
ixl(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.

There is no HW counter for frames with invalid L3/L4 checksums
so add a SW one.

Also add a "rx_errors" sysctl with a copy of netstat IERRORS
counter value to make it easier accessible from scripts.

Reviewed By: erj
Tested By: gowtham.kumar.ks@intel.com
Sponsored By: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D27639
sys/dev/ixl/ixl.h
sys/dev/ixl/ixl_pf_main.c
sys/dev/ixl/ixl_txrx.c