projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c45ab5e
)
hfsc: min-rate tweaks.
author
Ethan Jackson
<ethan@nicira.com>
Mon, 14 Mar 2011 21:27:50 +0000
(14:27 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 15 Mar 2011 22:23:10 +0000
(15:23 -0700)
There doesn't appear to be any reason to enforce a minimum min-rate
of 1500Bps on queues. This commit lowers the minimum to 1Bps. A
min-rate of 0 is not allowed by hfsc in the kernel.
lib/netdev-linux.c
patch
|
blob
|
history
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index baaa1e66343bc32124405d0071ab6167ecd7f758..dce7592b9210a6078b3a2a4292b3e34b31b3b4ff 100644
(file)
--- a/
lib/netdev-linux.c
+++ b/
lib/netdev-linux.c
@@
-2973,7
+2973,7
@@
hfsc_parse_class_details__(struct netdev *netdev,
max_rate_s = shash_find_data(details, "max-rate");
min_rate = min_rate_s ? strtoull(min_rate_s, NULL, 10) / 8 : 0;
- min_rate = MAX(min_rate, 1
500
);
+ min_rate = MAX(min_rate, 1);
min_rate = MIN(min_rate, hfsc->max_rate);
max_rate = (max_rate_s