diff options
author | Ben Pfaff <blp@nicira.com> | 2011-10-05 11:18:13 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-10-05 11:18:13 -0700 |
commit | a8d9304d121f56af0e6f02677342933579be3277 (patch) | |
tree | 0354c3bbcf41da9c5dc2c2945b65c3b92ef28350 /lib/dpif.h | |
parent | 5621afff91b24a9b79b9eab0965dcd888ef810e8 (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.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |