aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-10-05 11:18:13 -0700
committerBen Pfaff <blp@nicira.com>2011-10-05 11:18:13 -0700
commita8d9304d121f56af0e6f02677342933579be3277 (patch)
tree0354c3bbcf41da9c5dc2c2945b65c3b92ef28350 /lib/dpif.h
parent5621afff91b24a9b79b9eab0965dcd888ef810e8 (diff)
dpif: Avoid use of "struct ovs_dp_stats" in platform-independent modules.
Over time we wish to reduce the number of datapath-protocol.h definitions used directly outside of Linux-specific code. This commit removes use of "struct ovs_dp_stats" from platform-independent code. Bug #7559.
Diffstat (limited to 'lib/dpif.h')
-rw-r--r--lib/dpif.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index f8332194..04c0a519 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -59,7 +59,16 @@ const char *dpif_base_name(const struct dpif *);
int dpif_delete(struct dpif *);
-int dpif_get_dp_stats(const struct dpif *, struct ovs_dp_stats *);
+/* Statisticss for a dpif as a whole. */
+struct dpif_dp_stats {
+ uint64_t n_frags; /* Number of dropped IP fragments. */
+ uint64_t n_hit; /* Number of flow table matches. */
+ 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. */
+};
+int dpif_get_dp_stats(const struct dpif *, struct dpif_dp_stats *);
+
int dpif_get_drop_frags(const struct dpif *, bool *drop_frags);
int dpif_set_drop_frags(struct dpif *, bool drop_frags);