aboutsummaryrefslogtreecommitdiff
path: root/lib/nx-match.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-08-10 13:09:18 -0700
committerEthan Jackson <ethan@nicira.com>2011-08-12 15:06:53 -0700
commitce523f65fc0f283269f6a697b152c089fb0a22ee (patch)
treef62bb3fb59a5a3423fc5473274dffff59d1407e5 /lib/nx-match.h
parent58a89177ab00d6a1c1b13479f8fd8e3a7b0aca6c (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.h4
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 *);