Added lookup count to ofp_table_stats.
[openvswitch] / switch / chain.c
index c591cdbfc2e7c238436340c237f107a0db548fc1..a04aac905b86c41e63a3f0b10a851f5807b7d3ca 100644 (file)
@@ -87,6 +87,7 @@ chain_lookup(struct sw_chain *chain, const struct sw_flow_key *key)
     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;