aboutsummaryrefslogtreecommitdiff
path: root/lib/learn.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2013-05-14 18:24:43 -0700
committerJustin Pettit <jpettit@nicira.com>2013-06-11 13:03:50 -0700
commitbcd2633a5be6d9b1dc4a42425f48d72423890573 (patch)
tree922da90c726f5ebe9686b16237ac9bbbd035411e /lib/learn.h
parent368eefac37c490ad4f63e5d40deb94c724cf25c5 (diff)
ofproto-dpif: Store relevant fields for wildcarding in facet.
Dynamically determines the flow fields that were relevant in processing flows based on the OpenFlow flow table and switch configuration. The immediate use for this functionality is to cache action translations for similar flows in facets. This yields a roughly 80% improvement in flow set up rates for a complicated flow table. More importantly, these wildcards will be used to determine what to wildcard for the forthcoming kernel wildcard (megaflow) patches that will allow wildcarding in the kernel, which will provide significant flow set up improvements. The approach to tracking fields and caching action translations in facets was based on an impressive prototype by Ethan Jackson. Co-authored-by: Ethan Jackson <ethan@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Signed-off-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'lib/learn.h')
-rw-r--r--lib/learn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/learn.h b/lib/learn.h
index 8ea8dcca..5bceb6e5 100644
--- a/lib/learn.h
+++ b/lib/learn.h
@@ -21,6 +21,7 @@
struct ds;
struct flow;
+struct flow_wildcards;
struct ofpbuf;
struct ofpact_learn;
struct ofputil_flow_mod;
@@ -38,6 +39,7 @@ void learn_to_nxast(const struct ofpact_learn *, struct ofpbuf *openflow);
void learn_execute(const struct ofpact_learn *, const struct flow *,
struct ofputil_flow_mod *, struct ofpbuf *ofpacts);
+void learn_mask(const struct ofpact_learn *, struct flow_wildcards *);
void learn_parse(char *, struct ofpbuf *ofpacts);
void learn_format(const struct ofpact_learn *, struct ds *);