static void show_bridge_domains_table_flow(struct confsys *confsys, struct bridge *bridge) { uint8_t i; struct flowdb *flowdb; struct table *table; flowdb = bridge->flowdb; flowdb_rdlock(flowdb); show(confsys, "Bridge: %s\n", bridge->name); for (i = 0; i < flowdb->table_size; i++) { if ((table = flowdb->tables[i]) != NULL) { show_table(confsys, table, i); } } flowdb_rdunlock(flowdb); }
static void show_bridge_domains_flowcache(struct confsys *confsys, struct bridge *bridge) { struct ofcachestat st; struct flowdb *flowdb; struct table *table; flowdb = bridge->flowdb; flowdb_rdlock(flowdb); show(confsys, "Bridge: %s\n", bridge->name); get_flowcache_statistics(bridge, &st); show(confsys, " nentries: %d\n", st.nentries); show(confsys, " hit: %" PRIu64 "\n", st.hit); show(confsys, " miss: %" PRIu64 "\n", st.miss); flowdb_rdunlock(flowdb); }