Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160476136
D29585.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
D29585.id.diff
View Options
diff --git a/sys/netinet/cc/cc_newreno.c b/sys/netinet/cc/cc_newreno.c
--- a/sys/netinet/cc/cc_newreno.c
+++ b/sys/netinet/cc/cc_newreno.c
@@ -259,9 +259,9 @@
if (IN_CONGRECOVERY(CCV(ccv, t_flags) &&
V_cc_do_abe && V_cc_abe_frlossreduce)) {
CCV(ccv, snd_ssthresh) =
- ((uint64_t)CCV(ccv, snd_ssthresh) *
- (uint64_t)beta) /
- (100ULL * (uint64_t)beta_ecn);
+ max(((uint64_t)CCV(ccv, snd_ssthresh) *
+ (uint64_t)beta) / (uint64_t)beta_ecn,
+ 2 * mss);
}
if (!IN_CONGRECOVERY(CCV(ccv, t_flags)))
CCV(ccv, snd_ssthresh) = cwin;
@@ -341,11 +341,15 @@
}
switch (opt->name) {
case CC_NEWRENO_BETA:
+ if (opt->val == 0 || opt->val > 100)
+ return (EINVAL);
nreno->beta = opt->val;
break;
case CC_NEWRENO_BETA_ECN:
if (!V_cc_do_abe)
return (EACCES);
+ if (opt->val == 0 || opt->val > 100)
+ return (EINVAL);
nreno->beta_ecn = opt->val;
break;
default:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 25, 9:59 PM (11 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34330632
Default Alt Text
D29585.id.diff (967 B)
Attached To
Mode
D29585: Fix the "frlossreduce" feature of newreno's Alternative Backoff with ECN (ABE) implementation
Attached
Detach File
Event Timeline
Log In to Comment