git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added lookup count to ofp_table_stats.
[sliver-openvswitch.git]
/
switch
/
chain.c
diff --git
a/switch/chain.c
b/switch/chain.c
index
c591cdb
..
a04aac9
100644
(file)
--- a/
switch/chain.c
+++ b/
switch/chain.c
@@
-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;