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)
Mon, Jul 20, 7:39 AM
Unknown Object (File)
Thu, Jul 16, 6:44 AM
Unknown Object (File)
Sun, Jul 12, 2:38 AM
Unknown Object (File)
Fri, Jul 3, 6:12 AM
Unknown Object (File)
Wed, Jul 1, 6:50 AM
Unknown Object (File)
Tue, Jun 30, 4:51 PM
Unknown Object (File)
Sat, Jun 27, 5:25 AM
Unknown Object (File)
Jun 21 2026, 6:32 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