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
F159236239: D10926.diff
Thu, Jun 11, 4:50 PM
Unknown Object (File)
Mon, Jun 8, 11:26 AM
Unknown Object (File)
Tue, May 26, 1:24 AM
Unknown Object (File)
Tue, May 26, 1:16 AM
Unknown Object (File)
Mon, May 25, 5:12 PM
Unknown Object (File)
Mon, May 25, 5:06 PM
Unknown Object (File)
Wed, May 20, 6:43 AM
Unknown Object (File)
Sun, May 17, 7:49 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