---
I talked this over with Keith and he remembered that HTB wasn't sending any
traffic at all if the min-rate was below mtu which is why we added the
requirement in the first place. It's more correct to use the actual mtu of the
link since we have it around.
---
lib/netdev-linux.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index dce7592..02d8a4d 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 */
--
1.7.4.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev