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)
Sat, Mar 30, 11:04 AM
Unknown Object (File)
Feb 3 2024, 10:10 AM
Unknown Object (File)
Jan 20 2024, 12:28 AM
Unknown Object (File)
Jan 16 2024, 8:46 AM
Unknown Object (File)
Dec 23 2023, 3:12 AM
Unknown Object (File)
Dec 8 2023, 8:22 PM
Unknown Object (File)
Nov 22 2023, 5:11 PM
Unknown Object (File)
Nov 14 2023, 3:13 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