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
F161322744: D10926.id.diff
Thu, Jul 2, 7:40 PM
Unknown Object (File)
Sat, Jun 27, 2:03 AM
Unknown Object (File)
Tue, Jun 23, 7:29 PM
Unknown Object (File)
Mon, Jun 22, 8:01 PM
Unknown Object (File)
Sat, Jun 20, 11:52 PM
Unknown Object (File)
Sat, Jun 13, 10:06 AM
Unknown Object (File)
Sat, Jun 13, 8:38 AM
Unknown Object (File)
Sat, Jun 13, 7:16 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