Page MenuHomeFreeBSD

tcp rack: cleanup storing values for beta and beta_ecn
ClosedPublic

Authored by tuexen on Mar 30 2025, 8:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 18, 4:09 AM
Unknown Object (File)
Tue, Dec 16, 11:02 PM
Unknown Object (File)
Mon, Dec 15, 2:51 AM
Unknown Object (File)
Fri, Dec 12, 8:19 PM
Unknown Object (File)
Nov 26 2025, 6:34 AM
Unknown Object (File)
Nov 16 2025, 1:51 AM
Unknown Object (File)
Nov 14 2025, 5:44 AM
Unknown Object (File)
Nov 8 2025, 11:39 AM

Details

Summary

beta and beta_ecn were stored using a variable of type structure newreno in struct rack_control. Later, structure newreno was extended and now contains several more fields. This results in an inefficiency and also in copying around uninitialized memory.
This patch fixes this by storing beta and beta_ecn individually in struct rack_control. Please note that the newreno_flags field was only stored and never used. Therefore, this is not stored anymore in struct rack_control.
No functional change intended.

CID: 1523796

Diff Detail

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