aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.h
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2013-10-21 14:37:34 -0700
committerJesse Gross <jesse@nicira.com>2013-10-22 10:23:22 -0700
commit847108dc297d15becbde436174d1a4bb348e64d1 (patch)
tree9ef5acf252423fe43efa2ffa02ded2a49ee31446 /lib/dpif.h
parent4fa72a95722f74ebee61254f06bb171e9207f9c1 (diff)
dpif-linux: collect and display mega flow mask stats
Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r--lib/dpif.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index 8996c0a6..ab69c1ce 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -387,6 +387,9 @@ struct dpif_dp_stats {
uint64_t n_missed; /* Number of flow table misses. */
uint64_t n_lost; /* Number of misses not sent to userspace. */
uint64_t n_flows; /* Number of flows present. */
+ uint64_t n_masks; /* Number of mega flow masks. */
+ uint64_t n_mask_hit; /* Number of mega flow masks visited for
+ flow table matches. */
};
int dpif_get_dp_stats(const struct dpif *, struct dpif_dp_stats *);