Page MenuHomeFreeBSD

ixl: Tie statistics baselines to hardware resource epochs
Needs ReviewPublic

Authored by kbowling on Thu, Sep 3, 11:00 AM.
Tags
None
Referenced Files
F170124402: D59337.id185690.diff
Thu, Sep 3, 2:21 PM
F170123389: D59337.id.diff
Thu, Sep 3, 2:16 PM
F170120288: D59337.diff
Thu, Sep 3, 2:01 PM
Subscribers

Details

Reviewers
kgalazka
Group Reviewers
Intel Networking
Restricted Owners Package(Owns No Changed Paths)
Summary
Raw VSI statistics belong to the firmware-assigned counter index and are
reset when firmware recreates the VSI.  Reusing a baseline across either
event makes a counter decrease look like a full-width rollover.

Reset the PF and main-VSI baselines when rebuilding hardware resources.
Start a new baseline when firmware assigns a different PF counter index
and whenever it allocates a VF VSI.  Ordinary interface reinits which
retain the hardware resources continue to retain their statistics.

This follows the lifecycle used by ice without placing an unconditional
statistics reset in ixl_initialize_vsi(), which also runs during ordinary
iflib initialization.

MFC after:      2 weeks
Sponsored by:   BBOX.io

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped