summaryrefslogtreecommitdiff
path: root/lib/odp-util.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-26 07:11:50 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 21:08:38 -0800
commitc97fb13280c565f55ed0de7cf0bf06ffe8320b70 (patch)
treec0b24d14a13526edd768dd2fe1c033c0e4c3d0ee /lib/odp-util.c
parentfeebdea2e5550a71c7accda936b6a55962f60a04 (diff)
downloadopenvswitch-c97fb13280c565f55ed0de7cf0bf06ffe8320b70.tar.gz
dpif: Eliminate "struct odp_flow_stats" from client-visible interface.
Following this commit, "struct odp_flow_stats" is only used in Linux-specific parts of OVS userspace code. This allows the actual Linux datapath interface to evolve more freely. Reviewed by Justin Pettit.
Diffstat (limited to 'lib/odp-util.c')
-rw-r--r--lib/odp-util.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c
index 60807ba0a..41acd6c5d 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -177,20 +177,6 @@ format_odp_actions(struct ds *ds, const struct nlattr *actions,
ds_put_cstr(ds, "drop");
}
}
-
-void
-format_odp_flow_stats(struct ds *ds, const struct odp_flow_stats *s)
-{
- ds_put_format(ds, "packets:%llu, bytes:%llu, used:",
- (unsigned long long int) s->n_packets,
- (unsigned long long int) s->n_bytes);
- if (s->used_sec) {
- long long int used = s->used_sec * 1000 + s->used_nsec / 1000000;
- ds_put_format(ds, "%.3fs", (time_msec() - used) / 1000.0);
- } else {
- ds_put_format(ds, "never");
- }
-}
/* Returns the correct length of the payload for a flow key attribute of the
* specified 'type', or -1 if 'type' is unknown. */