Page MenuHomeFreeBSD

ena: move hw stats updating routine to separate task
ClosedPublic

Authored by mk_semihalf.com on May 26 2017, 10:51 AM.
Referenced Files
Unknown Object (File)
Thu, Oct 1, 9:44 PM
Unknown Object (File)
Tue, Sep 29, 10:30 PM
Unknown Object (File)
Tue, Sep 29, 10:10 PM
Unknown Object (File)
Tue, Sep 29, 9:28 PM
Unknown Object (File)
Mon, Sep 21, 1:58 PM
Unknown Object (File)
Aug 24 2026, 1:03 AM
Unknown Object (File)
Aug 21 2026, 4:53 PM
Unknown Object (File)
Aug 21 2026, 7:47 AM

Details

Summary

Initially, stats were being updated each time OS was requesting for
first statistic.
To read statistics from hw, condvar was used. cv_timedwait cannot be
called when unsleepable lock is held, and this happens when FreeBSD
is requesting statistic.
Separate task is reading statistics from NIC each 1 second.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable