projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Report 0 Mbps when speed not available instead of 100 Mbps.
[openvswitch]
/
lib
/
netdev-linux.c
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index 412a92debf0d0758ffcdb2fe0e7fa70c1ee0e7d3..0460c069cc3b8ef25b452dc7784d014abc44e1c5 100644
(file)
--- 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);
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;
}
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);
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;
}
class->min_rate = max_rate;