summaryrefslogtreecommitdiff
path: root/lib/bundle.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/bundle.h
parent368eefac37c490ad4f63e5d40deb94c724cf25c5 (diff)
downloadopenvswitch-bcd2633a5be6d9b1dc4a42425f48d72423890573.tar.gz
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/bundle.h')
-rw-r--r--lib/bundle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundle.h b/lib/bundle.h
index 5b6bb6744..2619aebad 100644
--- a/lib/bundle.h
+++ b/lib/bundle.h
@@ -27,6 +27,7 @@
struct ds;
struct flow;
+struct flow_wildcards;
struct ofpact_bundle;
struct ofpbuf;
@@ -35,6 +36,7 @@ struct ofpbuf;
* See include/openflow/nicira-ext.h for NXAST_BUNDLE specification. */
uint16_t bundle_execute(const struct ofpact_bundle *, const struct flow *,
+ struct flow_wildcards *wc,
bool (*slave_enabled)(uint16_t ofp_port, void *aux),
void *aux);
enum ofperr bundle_from_openflow(const struct nx_action_bundle *,