From 4f1046117c54e60b8ef6b7b21c23d3a4bf2e61fb Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 15 Mar 2011 14:57:12 -0700 Subject: [PATCH] htb: Set required min-rate to mtu not 1500. --- lib/netdev-linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index dce7592b..02d8a4d9 100644 --- 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 */ -- 2.30.2