]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lagg: stop double-counting output errors and counting drops as errors
authorgallatin <gallatin@FreeBSD.org>
Mon, 13 Apr 2020 23:06:56 +0000 (23:06 +0000)
committergallatin <gallatin@FreeBSD.org>
Mon, 13 Apr 2020 23:06:56 +0000 (23:06 +0000)
commit80ceb75a30885d0a83fb50960030088749604f8d
tree81350710e2774742ccef2e922de24f927bfc1ae7
parent72c442b311c4daa2bcdf0e0df49d5a08709146c1
lagg: stop double-counting output errors and counting drops as errors

Before this change, lagg double-counted errors from lagg members, and counted
every drop by a lagg member as an error.  Eg, if lagg sent a packet, and the
underlying hardware driver dropped it, a counter would be incremented by both
lagg and the underlying driver.

This change attempts to fix that by incrementing lagg's counters only for
errors that do not come from underlying drivers.

Reviewed by: hselasky, jhb
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D24331
sys/net/if_lagg.c