]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r301724
authorarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 23 Aug 2016 13:51:55 +0000 (13:51 +0000)
committerarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 23 Aug 2016 13:51:55 +0000 (13:51 +0000)
commitd5d20589082ab2b7e500349b7a8f69828318a906
treead937769133ff43615fd92d3b0a8c7c5029403a3
parent15b99a8679bf911775310f57c9274937cd24d710
MFC r301724

sfxge(4): handle negative ticks difference correctly

ticks are signed int and if statistics is not updated for a long time
(more than INT_MAX ticks, but less than UINT_MAX) difference becomes
negative and less than hz for a long time.

Other option to repeat is simply load driver (which initializes
timestamps to 0) when ticks are negative.

Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@304679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sfxge/sfxge_ev.c
sys/dev/sfxge/sfxge_port.c