diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-08-10 13:09:18 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-08-12 15:06:53 -0700 |
commit | ce523f65fc0f283269f6a697b152c089fb0a22ee (patch) | |
tree | f62bb3fb59a5a3423fc5473274dffff59d1407e5 /lib/nx-match.h | |
parent | 58a89177ab00d6a1c1b13479f8fd8e3a7b0aca6c (diff) |
nx-match: Update register check functions.
This patch simplifies the API of nxm_dst_check() and adds a new
function nxm_src_check() for checking source fields.
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r-- | lib/nx-match.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h index 5365ccaf..a7441d0b 100644 --- a/lib/nx-match.h +++ b/lib/nx-match.h @@ -49,7 +49,9 @@ 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, +int nxm_src_check(ovs_be32 src, unsigned int ofs, unsigned int n_bits, + const struct flow *); +int nxm_dst_check(ovs_be32 dst, unsigned int ofs, unsigned int n_bits, const struct flow *); void nxm_execute_reg_move(const struct nx_action_reg_move *, struct flow *); |