diff options
author | Ben Pfaff <blp@nicira.com> | 2010-11-11 10:41:33 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-11-11 10:41:33 -0800 |
commit | b6c9e612fa0801037c60339a931d29413e8fa08f (patch) | |
tree | f265753e9a49d0885f9e04e071dcd9fdead2d8e2 /lib/nx-match.h | |
parent | 9b2cfa734c35305abf29e6c64e94da47d4fc68db (diff) |
ofproto: Implement support for registers in extended flow match.
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r-- | lib/nx-match.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h index 7bfea8c8..e02e22b4 100644 --- a/lib/nx-match.h +++ b/lib/nx-match.h @@ -20,7 +20,10 @@ #include <stdint.h> struct cls_rule; +struct flow; struct ofpbuf; +struct nx_action_reg_load; +struct nx_action_reg_move; /* Nicira Extended Match (NXM) flexible flow match helper functions. * @@ -34,6 +37,12 @@ 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 *); +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 *); + +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 *); + /* Upper bound on the length of an nx_match. The longest nx_match (assuming * we implement 4 registers) would be: * |