mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
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>
This commit is contained in:
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user