diff options
author | Ben Pfaff <blp@nicira.com> | 2013-09-04 13:37:56 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-09-04 13:40:22 -0700 |
commit | b53d1713ad7ce865c47e3fb8421f27c6a0dcbb9c (patch) | |
tree | 78da1fd16c7992812ad67aa8e41e6fbe478f8fac /vswitchd/bridge.c | |
parent | 08b8ef975633777b47638029ead16a1af90a7f7a (diff) |
ofproto: Convert units correctly in ofport_open().
netdev_features_to_bps() returns a speed in bps, but struct
ofputil_phy_port's curr_speed and max_speed are in kbps, so a conversion
is necessary. This commit fixes the problem.
Reported-by: Benjamin Lunsky <benjamin.lunsky@netronome.com>
Tested-by: Benjamin Lunsky <benjamin.lunsky@netronome.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'vswitchd/bridge.c')
0 files changed, 0 insertions, 0 deletions