X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=4fd55e942642ab1bcb9c7e018e1db7ccb663c1cf;hb=7a13bc004d124cdc38ffc5f3cb6d7b3aefe1763b;hp=86f1bef70fdf8d844418ddb9222107ba4d6b9c51;hpb=ff45fb571726c1fd7faaae8ad6742a7b7fceae56;p=sliver-openvswitch.git diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 86f1bef70..4fd55e942 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 { @@ -1242,7 +1241,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); @@ -1302,11 +1300,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. */