Page MenuHomeFreeBSD

Refactor tcp_get_srtt()
ClosedPublic

Authored by jtl on May 27 2023, 3:06 PM.
Tags
None
Referenced Files
F106178700: D40304.diff
Thu, Dec 26, 4:48 PM
Unknown Object (File)
Sat, Dec 14, 8:42 PM
Unknown Object (File)
Sat, Dec 7, 7:12 AM
Unknown Object (File)
Nov 22 2024, 5:27 AM
Unknown Object (File)
Nov 20 2024, 10:24 PM
Unknown Object (File)
Nov 20 2024, 10:23 PM
Unknown Object (File)
Nov 20 2024, 10:23 PM
Unknown Object (File)
Nov 20 2024, 9:58 PM

Details

Summary

After rGf5abdb03119a, it looks like there is an opportunity to refactor tcp_get_srtt() into its two component operations: unit conversion and shifting.

This should not cause any functional change.

Note for the future: I question whether it is a good idea for the long-term to manage the complexity of maintaining alternate unit storage in the TCB. If there is not already a plan for unifying the unit used for these values, I think we should consider making one.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jtl requested review of this revision.May 27 2023, 3:06 PM

There is the plan to move the base stack away from ticks and use usecs everywhere. But we wanted not to do this before stable/14 is branched.

This revision is now accepted and ready to land.May 27 2023, 7:01 PM
This revision was automatically updated to reflect the committed changes.