diff options
author | Ben Pfaff <blp@nicira.com> | 2011-09-29 15:36:14 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-09-30 08:58:10 -0700 |
commit | 572b70687b27ef6fdd1ed90d1ac932d6de35701f (patch) | |
tree | 9d648b8dfbf7e0f06ea841154f02a667d8218ac6 /lib/dpif.h | |
parent | a946b636edd932994a8972cf23168e4c08b21e8e (diff) |
flow: Move flow_extract_stats() to dpif.c, as dpif_flow_stats_extract().
The "flow" module is concerned only with OpenFlow flows these days. It
shouldn't have anything to do with ODP or dpifs. However, it included
dpif.h just to implement flow_extract_stats(). This function is a better
fit for dpif.c, so this commit moves it there and removes the dpif.h
#include from flow.h and flow.c
This commit also removes a few more dpif.h #includes that weren't needed.
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -32,6 +32,7 @@ extern "C" { struct dpif; struct ds; +struct flow; struct nlattr; struct ofpbuf; struct sset; @@ -115,6 +116,8 @@ struct dpif_flow_stats { uint8_t tcp_flags; }; +void dpif_flow_stats_extract(const struct flow *, struct ofpbuf *packet, + struct dpif_flow_stats *); void dpif_flow_stats_format(const struct dpif_flow_stats *, struct ds *); enum dpif_flow_put_flags { |