HomeFreeBSD

e1000: Fix some issues in em_newitr()

Description

e1000: Fix some issues in em_newitr()

  • Load packet and byte counters exactly once, as they can be concurrently mutated.
  • Rename bytes_packets to bytes_per_packet, which seems clearer.
  • Use local variables that have the same types as the counter values, rather than truncating unsigned long to u32.

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

Details

Provenance
markjAuthored on May 27 2025, 5:08 PM
Reviewer
kbowling
Differential Revision
D50416: e1000: Fix races in the AIM implementation
Parents
rGe0267657f396: e1000: Initialize helper variables in em_newitr()
Branches
Unknown
Tags
Unknown