aboutsummaryrefslogtreecommitdiff
path: root/datapath/flow.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2011-10-21 14:38:54 -0700
committerPravin B Shelar <pshelar@nicira.com>2011-10-21 14:38:54 -0700
commit4edb9ae90e4092f5f56b9d914d2b88783c49860d (patch)
treeb606f5a5eca862b62aa2f4458cb7f54b06c73c2d /datapath/flow.h
parenta0003c0c359bc3ffe8a6683dbd0121877a3ce700 (diff)
datapath: Refactor actions in terms of match fields.
Almost all current actions can be expressed in the form of push/pop/set <field>, where field is one of the match fields. We can create three base actions and take a field. This has both a nice symmetry and avoids inconsistencies where we can match on the vlan TPID but not set it. Following patch converts all actions to this new format. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com> Bug #7115
Diffstat (limited to 'datapath/flow.h')
-rw-r--r--datapath/flow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath/flow.h b/datapath/flow.h
index ade8ac80..96b3b4fe 100644
--- a/datapath/flow.h
+++ b/datapath/flow.h
@@ -180,5 +180,6 @@ void flow_tbl_remove(struct flow_table *table, struct sw_flow *flow);
u32 flow_hash(const struct sw_flow_key *key, int key_len);
struct sw_flow *flow_tbl_next(struct flow_table *table, u32 *bucket, u32 *idx);
+extern const u32 ovs_key_lens[OVS_KEY_ATTR_MAX + 1];
#endif /* flow.h */