Added lookup count to ofp_table_stats.
[openvswitch] / datapath / chain.c
index 865f908d7d00cf468cc52861b5427b2e3049d9bb..7d980566063be4a97055e17b430ca3add0d59411 100644 (file)
@@ -72,6 +72,7 @@ struct sw_flow *chain_lookup(struct sw_chain *chain,
        for (i = 0; i < chain->n_tables; i++) {
                struct sw_table *t = chain->tables[i];
                struct sw_flow *flow = t->lookup(t, key);
+               t->n_lookup++;
                if (flow) {
                        t->n_matched++;
                        return flow;