Page MenuHomeFreeBSD

tcp rack: cleanup storing values for beta and beta_ecn
ClosedPublic

Authored by tuexen on Sun, Mar 30, 8:03 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