aboutsummaryrefslogtreecommitdiff
path: root/lib/nx-match.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-07-19 15:47:02 -0700
committerEthan Jackson <ethan@nicira.com>2011-07-22 17:46:48 -0700
commit43edca5717cf389eb87850abbf30efc738049921 (patch)
treec2293c82bd2c7753e878afe45b66669880211f74 /lib/nx-match.h
parent711e0157cf345f1473247ec90c6ff39eb9f7743c (diff)
nx-match: New helpers.
This patch creates two new helper functions, nxm_reg_load() and nxm_dst_check(). The new nxm_dst_check() function may be used to check the validity of destination fields used by actions. The new nxm_reg_load() function may be used by actions which need to write to NXM fields. This patch also allows multipath and autopath to write their result to non-register NXM fields.
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r--lib/nx-match.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h
index b2260b1f..5365ccaf 100644
--- a/lib/nx-match.h
+++ b/lib/nx-match.h
@@ -49,9 +49,13 @@ void nxm_format_reg_load(const struct nx_action_reg_load *, struct ds *);
int nxm_check_reg_move(const struct nx_action_reg_move *, const struct flow *);
int nxm_check_reg_load(const struct nx_action_reg_load *, const struct flow *);
+int nxm_dst_check(ovs_be32 dst, ovs_be16 ofs_nbits, size_t min_n_bits,
+ const struct flow *);
void nxm_execute_reg_move(const struct nx_action_reg_move *, struct flow *);
void nxm_execute_reg_load(const struct nx_action_reg_load *, struct flow *);
+void nxm_reg_load(ovs_be32 dst, ovs_be16 ofs_nbits, uint64_t src_data,
+ struct flow *);
int nxm_field_bytes(uint32_t header);
int nxm_field_bits(uint32_t header);