aboutsummaryrefslogtreecommitdiff
path: root/lib/nx-match.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-08-10 13:32:51 -0700
committerEthan Jackson <ethan@nicira.com>2011-08-12 15:06:53 -0700
commite7ba48c87d5b6441e2a3f07f3bc1a1f3633616c7 (patch)
treeec4f014099ed523d982cd99226a14fc482d7a6ed /lib/nx-match.h
parentce523f65fc0f283269f6a697b152c089fb0a22ee (diff)
nx-match: New function nxm_read_field_bits().
nxm_read_field_bits() simplifies reading of NXM fields with an ofs_nbits parameter. This patch updates nxm_execute_reg_move() to use the new function. A user outside of the nx-match module will be added in future patches.
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r--lib/nx-match.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h
index a7441d0b..04da2398 100644
--- a/lib/nx-match.h
+++ b/lib/nx-match.h
@@ -41,6 +41,9 @@ int nx_put_match(struct ofpbuf *, const struct cls_rule *);
char *nx_match_to_string(const uint8_t *, unsigned int match_len);
int nx_match_from_string(const char *, struct ofpbuf *);
+uint64_t nxm_read_field_bits(ovs_be32 header, ovs_be16 ofs_nbits,
+ const struct flow *);
+
void nxm_parse_reg_move(struct nx_action_reg_move *, const char *);
void nxm_parse_reg_load(struct nx_action_reg_load *, const char *);