HomeFreeBSD

Since 'ticks' is an int, it may wrap around and cr_ticks at a certain

Description

Since 'ticks' is an int, it may wrap around and cr_ticks at a certain
counter_rate will be greater than ticks, resulting in counter_ratecheck()
failure. To fix this take an absolute value of the difference between
ticks and cr_ticks.

Reported by: jtl
Sponsored by: Netflix

Details

Provenance
glebiusAuthored on
Parents
rS335241: cxgbe(4): Track the number of received frames separately from the number
Branches
Unknown
Tags
Unknown