HomeFreeBSD

iflib: Avoid double counting in rxeof

Description

iflib: Avoid double counting in rxeof

iflib_rxeof() was counting everything twice. This was introduced when
pfil hooks were added to the iflib receive path. We want to count rx
packets/bytes before the pfil hooks are executed, so remove the counter
adjustments that are executed after.

Approved by: re (gjb)
PR: 253583
Reviewed by: gallatin, erj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28900

(cherry picked from commit b6999635b195e8c0dd5c08ac9ff268c92107cc66)
(cherry picked from commit 76294b65df64e87f29a7d7df23c5360dd9ada5aa)

Details

Provenance
markjAuthored on Feb 24 2021, 3:08 PM
Reviewer
gallatin
Differential Revision
D28900: iflib: Avoid double counting in rxeof
Parents
rG310ae6a0df39: OpenSSL: Regen manual page for the previous commit
Branches
Unknown
Tags
Unknown