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.

PR: 253583
Reviewed by: gallatin, erj
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28900

Details

Provenance
markjAuthored on Feb 24 2021, 3:08 PM
Reviewer
gallatin
Differential Revision
D28900: iflib: Avoid double counting in rxeof
Parents
rGe70eb4027151: Mount the ESP on /boot/efi in VM images.
Branches
Unknown
Tags
Unknown