projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79398ba
)
htb: Set required min-rate to mtu not 1500.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 15 Mar 2011 21:57:12 +0000
(14:57 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 15 Mar 2011 22:23:10 +0000
(15:23 -0700)
lib/netdev-linux.c
patch
|
blob
|
history
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index dce7592b9210a6078b3a2a4292b3e34b31b3b4ff..02d8a4d9aa2241a76b0bfcef741a306c10c44d23 100644
(file)
--- a/
lib/netdev-linux.c
+++ b/
lib/netdev-linux.c
@@
-2497,8
+2497,10
@@
htb_parse_class_details__(struct netdev *netdev,
return EINVAL;
}
+ /* HTB requires at least an mtu sized min-rate to send any traffic even
+ * on uncongested links. */
hc->min_rate = min_rate_s ? strtoull(min_rate_s, NULL, 10) / 8 : 0;
- hc->min_rate = MAX(hc->min_rate,
1500
);
+ hc->min_rate = MAX(hc->min_rate,
mtu
);
hc->min_rate = MIN(hc->min_rate, htb->max_rate);
/* max-rate */