X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fflow.h;h=2dd0c4aec8817ace0e98319253244ea18a3190af;hb=6767a2cce9a6412b3a41a927c4d56b9f0e1ec36f;hp=06da995a6ca9825ca99a1c88e7ec714653665a36;hpb=36956a7d33c9ee204fcb184484a5aaacbd9ecef8;p=openvswitch diff --git a/lib/flow.h b/lib/flow.h index 06da995a..2dd0c4ae 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -27,6 +27,7 @@ #include "openvswitch/datapath-protocol.h" #include "util.h" +struct dpif_flow_stats; struct ds; struct flow_wildcards; struct ofp_match; @@ -66,7 +67,7 @@ BUILD_ASSERT_DECL(sizeof(struct flow) == FLOW_SIG_SIZE + FLOW_PAD_SIZE); int flow_extract(struct ofpbuf *, uint64_t tun_id, uint16_t in_port, struct flow *); void flow_extract_stats(const struct flow *flow, struct ofpbuf *packet, - struct odp_flow_stats *stats); + struct dpif_flow_stats *); char *flow_to_string(const struct flow *); void flow_format(struct ds *, const struct flow *); void flow_print(FILE *, const struct flow *); @@ -149,5 +150,6 @@ bool flow_wildcards_has_extra(const struct flow_wildcards *, uint32_t flow_wildcards_hash(const struct flow_wildcards *); bool flow_wildcards_equal(const struct flow_wildcards *, const struct flow_wildcards *); +uint32_t flow_hash_symmetric_l4(const struct flow *flow, uint32_t basis); #endif /* flow.h */