HomeFreeBSD

e1000: Initialize helper variables in em_newitr()

Description

e1000: Initialize helper variables in em_newitr()

Due to races with the threaded transmit and receive paths, it's possible
to have r/tx_bytes != 0 && r/tx_packets == 0, in which case the maximum
byte count could be left uninitialized. Initialize them to zero to
handle this case.

PR: 286819
Reviewed by: kbowling
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D50416

Details

Provenance
markjAuthored on May 27 2025, 4:31 PM
Reviewer
kbowling
Differential Revision
D50416: e1000: Fix races in the AIM implementation
Parents
rG539f84db949a: tests/ci: Pre-commit CI with CIRRUS-CI
Branches
Unknown
Tags
Unknown