X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-util.c;h=20306e4835bec39ef55dea2482957fc0d83e0722;hb=d02a5f8ea4e1da19ccc4f903026b77649472b236;hp=b81476869610ce16a050e047d517bec9b96c89d1;hpb=8087f5ff825cae3a699e5a60ca6dd0deb10fc8e5;p=openvswitch diff --git a/lib/ofp-util.c b/lib/ofp-util.c index b8147686..20306e48 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -2421,8 +2421,8 @@ ofputil_decode_ofp10_phy_port(struct ofputil_phy_port *pp, pp->supported = netdev_port_features_from_ofp10(opp->supported); pp->peer = netdev_port_features_from_ofp10(opp->peer); - pp->curr_speed = netdev_features_to_bps(pp->curr) / 1000; - pp->max_speed = netdev_features_to_bps(pp->supported) / 1000; + pp->curr_speed = netdev_features_to_bps(pp->curr, 0) / 1000; + pp->max_speed = netdev_features_to_bps(pp->supported, 0) / 1000; return 0; }