mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user