projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce default burst limit to rate limit / 4.
[openvswitch]
/
secchan
/
secchan.c
diff --git
a/secchan/secchan.c
b/secchan/secchan.c
index e54fb2ff392d0763b2dc33026af7d648c4f863cb..64a1f233a5db45ce14ff08197966dde6418c7718 100644
(file)
--- a/
secchan/secchan.c
+++ b/
secchan/secchan.c
@@
-1219,13
+1219,10
@@
parse_options(int argc, char *argv[], struct settings *s)
VLOG_WARN("Rate limit set to unusually low value %d",
s->rate_limit);
}
VLOG_WARN("Rate limit set to unusually low value %d",
s->rate_limit);
}
-
if (!s->burst_limit) {
if (!s->burst_limit) {
- s->burst_limit = s->rate_limit * 2;
- } else if (s->burst_limit < s->rate_limit) {
- VLOG_WARN("Burst limit (%d) set lower than rate limit (%d)",
- s->burst_limit, s->rate_limit);
+ s->burst_limit = s->rate_limit / 4;
}
}
+ s->burst_limit = MAX(s->burst_limit, 1);
s->burst_limit = MIN(s->burst_limit, INT_MAX / 1000);
}
}
s->burst_limit = MIN(s->burst_limit, INT_MAX / 1000);
}
}