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)
Sun, Jan 26, 6:25 PM
Unknown Object (File)
Fri, Jan 24, 5:40 PM
Unknown Object (File)
Sat, Jan 11, 2:26 AM
Unknown Object (File)
Dec 31 2024, 8:21 AM
Unknown Object (File)
Dec 5 2024, 9:47 AM
Unknown Object (File)
Nov 28 2024, 5:22 AM
Unknown Object (File)
Nov 27 2024, 5:47 AM
Unknown Object (File)
Nov 20 2024, 7:31 PM

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