HomeFreeBSD

cxgbe: Compute timestamps via sbintime_t.

Description

cxgbe: Compute timestamps via sbintime_t.

This uses fixed-point math already used elsewhere in the kernel for
sub-second time values. To avoid overflows this does require updating
the calibration once a second rather than once every 30 seconds. Note
that the cxgbe driver already queries multiple registers once a second
for the statistics timers. This version also uses fewer instructions
with no branches (for the math portion) in the per-packet fast path.

Reviewed by: np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D36663

Details

Provenance
jhbAuthored on Sep 26 2022, 9:57 PM
Reviewer
np
Differential Revision
D36663: cxgbe: Compute timestamps via sbintime_t.
Parents
rG52360ca32ff9: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE
Branches
Unknown
Tags
Unknown