2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

hfsc: min-rate tweaks.

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.
This commit is contained in:
Ethan Jackson
2011-03-14 14:27:50 -07:00
parent c45ab5e9b7
commit 79398bad9e

View File

@@ -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, 1500);
min_rate = MAX(min_rate, 1);
min_rate = MIN(min_rate, hfsc->max_rate);
max_rate = (max_rate_s