aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/Rewrite/(public-mirror)
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2026-08-10 15:12:24 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2026-08-16 01:23:22 +0000
commitcb85c4397bb3f57e60ab20c239b9339c4b752412 (patch)
tree93666ba48928e5db2fd99e135c53019740e98b87 /lib/Frontend/Rewrite/(public-mirror)
parentdf02513fd44bcede0aa8833ae5c2af826f63ce10 (diff)
ixv: Preserve statistics across resetsHEADmain
The VF statistics registers are free running and are not cleared on read. The existing code records attach time bases and pre-reset totals, but never uses either when publishing counters. It instead replaces the low hardware bits directly, so counters can inherit pre-attach traffic or jump backward after a reset. Accumulate modular 32- and 36-bit deltas, following DPDK, while keeping the software totals across planned resets. Establish a fresh hardware baseline after each successful reset and invalidate the sampling epoch when mailbox state is lost. Detect unsolicited PF resets explicitly so a reset while link is down cannot be mistaken for counter wrap. Remove the unused base and saved-reset bookkeeping. On E610, packet and octet counters remained monotonic across a VF FLR and a PF down/up cycle. Traffic after each reset advanced both RX and TX counters. MFC after: 2 weeks Sponsored by: BBOX.io
Diffstat (limited to 'lib/Frontend/Rewrite/(public-mirror)')
0 files changed, 0 insertions, 0 deletions