aboutsummaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-04-24 15:43:11 -0700
committerBen Pfaff <blp@nicira.com>2012-04-24 18:08:39 -0700
commit7f81a52a98bf166c5419363f12ad369a037eb1b7 (patch)
tree5fad6037e9bdc5b13d486a036d6ecb83408fa276 /vswitchd
parent8b5da7a6138537e848b48b8a7ed534dff0693899 (diff)
vswitchd: Drop 'need_refresh' member from struct iface.
It's no longer useful. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 058d7c02..20497208 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -87,7 +87,6 @@ struct iface {
struct netdev *netdev; /* Network device. */
const char *type; /* Usually same as cfg->type. */
const struct ovsrec_interface *cfg;
- bool need_refresh; /* Refresh iface after create. */
};
struct mirror {
@@ -1253,7 +1252,6 @@ iface_create(struct bridge *br, struct if_cfg *if_cfg, int ofp_port)
iface->ofp_port = -1;
iface->netdev = NULL;
iface->cfg = if_cfg->cfg;
- iface->need_refresh = true;
hmap_insert(&br->iface_by_name, &iface->name_node,
hash_string(iface->name, 0));
list_push_back(&port->ifaces, &iface->port_elem);
@@ -1313,11 +1311,10 @@ iface_create(struct bridge *br, struct if_cfg *if_cfg, int ofp_port)
}
}
- /* Populate stats columns in new Interface rows. */
- if (iface->netdev && iface->need_refresh) {
+ /* Initially populate stats columns. */
+ if (iface->netdev) {
iface_refresh_stats(iface);
iface_refresh_status(iface);
- iface->need_refresh = false;
}
/* Delete the iface if we failed. */