HomeFreeBSD

MFC r301724

Description

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.

Details

Provenance
arybchikAuthored on
Parents
rS304678: Use roundup2() from sys/param.h.
Branches
Unknown
Tags
Unknown