diff options
author | Eelco Chaudron <echaudro@redhat.com> | 2020-07-31 14:20:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-04 00:17:48 +0200 |
commit | 9d2f627b7ec9d5d3246b6cec17f290ee6778c83b (patch) | |
tree | 79d4b5e7a6a6f7c49a37585c3b685788ed68e5fd /net/openvswitch/flow_table.h | |
parent | net: mvpp2: fix memory leak in mvpp2_rx (diff) | |
download | linux-9d2f627b7ec9d5d3246b6cec17f290ee6778c83b.tar.xz linux-9d2f627b7ec9d5d3246b6cec17f290ee6778c83b.zip |
net: openvswitch: add masks cache hit counter
Add a counter that counts the number of masks cache hits, and
export it through the megaflow netlink statistics.
Reviewed-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/flow_table.h')
-rw-r--r-- | net/openvswitch/flow_table.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openvswitch/flow_table.h b/net/openvswitch/flow_table.h index 1f664b050e3b..325e939371d8 100644 --- a/net/openvswitch/flow_table.h +++ b/net/openvswitch/flow_table.h @@ -82,7 +82,8 @@ struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table, struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *, const struct sw_flow_key *, u32 skb_hash, - u32 *n_mask_hit); + u32 *n_mask_hit, + u32 *n_cache_hit); struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, const struct sw_flow_key *); struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl, |