diff options
author | Ben Pfaff <blp@nicira.com> | 2012-02-15 14:23:38 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-03-07 14:05:09 -0800 |
commit | 6c0386119d614d5e26ca08cc3d8e527806b87ef9 (patch) | |
tree | ff134fefb9dfd21cb99408fbd9089085b86ef34d /vswitchd | |
parent | 7887679be26e75b897494580f280870d9a1fa318 (diff) | |
download | openvswitch-6c0386119d614d5e26ca08cc3d8e527806b87ef9.tar.gz |
netdev: Abstract "features" interface away from OpenFlow 1.0.
netdev_get_features() and other functions have always used OpenFlow 1.0
"enum ofp_port_features" bits as part of their interface. This commit
switches over to using an internally defined interface that is not tied
directly to any OpenFlow version, making evolution of each side of the
interface easier in the future.
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'vswitchd')
-rw-r--r-- | vswitchd/bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 7c3e4ba14..4761cbf01 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -846,7 +846,7 @@ port_configure_stp(const struct ofproto *ofproto, struct port *port, if (config_str) { port_s->path_cost = strtoul(config_str, NULL, 10); } else { - uint32_t current; + enum netdev_features current; if (netdev_get_features(iface->netdev, ¤t, NULL, NULL, NULL)) { /* Couldn't get speed, so assume 100Mb/s. */ @@ -1483,8 +1483,8 @@ iface_refresh_status(struct iface *iface) { struct shash sh; + enum netdev_features current; enum netdev_flags flags; - uint32_t current; int64_t bps; int mtu; int64_t mtu_64; |