X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetdev-linux.c;h=0460c069cc3b8ef25b452dc7784d014abc44e1c5;hb=d02a5f8ea4e1da19ccc4f903026b77649472b236;hp=412a92debf0d0758ffcdb2fe0e7fa70c1ee0e7d3;hpb=8087f5ff825cae3a699e5a60ca6dd0deb10fc8e5;p=openvswitch diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 412a92de..0460c069 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -2668,7 +2668,7 @@ htb_parse_qdisc_details__(struct netdev *netdev, enum netdev_features current; netdev_get_features(netdev, ¤t, NULL, NULL, NULL); - hc->max_rate = netdev_features_to_bps(current) / 8; + hc->max_rate = netdev_features_to_bps(current, 100 * 1000 * 1000) / 8; } hc->min_rate = hc->max_rate; hc->burst = 0; @@ -3147,7 +3147,7 @@ hfsc_parse_qdisc_details__(struct netdev *netdev, const struct smap *details, enum netdev_features current; netdev_get_features(netdev, ¤t, NULL, NULL, NULL); - max_rate = netdev_features_to_bps(current) / 8; + max_rate = netdev_features_to_bps(current, 100 * 1000 * 1000) / 8; } class->min_rate = max_rate;