X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnx-match.h;h=6a57297cb781baddbcd5e170bd8a46b25db7c064;hb=59af549f66c770a9c76a4f00d10abf5dd2009f6e;hp=161733f7feadfce9122b14dde65cba6546d6f894;hpb=7687c5f329031a35672281e1c31b52251655951b;p=sliver-openvswitch.git diff --git a/lib/nx-match.h b/lib/nx-match.h index 161733f7f..6a57297cb 100644 --- a/lib/nx-match.h +++ b/lib/nx-match.h @@ -23,11 +23,9 @@ #include "flow.h" #include "ofp-errors.h" #include "openvswitch/types.h" -#include "ofp-errors.h" -struct cls_rule; struct ds; -struct flow; +struct match; struct mf_subfield; struct ofpact_reg_move; struct ofpact_reg_load; @@ -41,16 +39,21 @@ struct nx_action_reg_move; */ enum ofperr nx_pull_match(struct ofpbuf *, unsigned int match_len, - uint16_t priority, struct cls_rule *, + struct match *, ovs_be64 *cookie, ovs_be64 *cookie_mask); enum ofperr nx_pull_match_loose(struct ofpbuf *, unsigned int match_len, - uint16_t priority, struct cls_rule *, - ovs_be64 *cookie, ovs_be64 *cookie_mask); -int nx_put_match(struct ofpbuf *, bool oxm, const struct cls_rule *, + struct match *, ovs_be64 *cookie, + ovs_be64 *cookie_mask); +enum ofperr oxm_pull_match(struct ofpbuf *, struct match *); +enum ofperr oxm_pull_match_loose(struct ofpbuf *, struct match *); +int nx_put_match(struct ofpbuf *, const struct match *, ovs_be64 cookie, ovs_be64 cookie_mask); +int oxm_put_match(struct ofpbuf *, const struct match *); char *nx_match_to_string(const uint8_t *, unsigned int match_len); +char *oxm_match_to_string(const uint8_t *, unsigned int match_len); int nx_match_from_string(const char *, struct ofpbuf *); +int oxm_match_from_string(const char *, struct ofpbuf *); void nxm_parse_reg_move(struct ofpact_reg_move *, const char *); void nxm_parse_reg_load(struct ofpact_reg_load *, const char *); @@ -62,6 +65,8 @@ enum ofperr nxm_reg_move_from_openflow(const struct nx_action_reg_move *, struct ofpbuf *ofpacts); enum ofperr nxm_reg_load_from_openflow(const struct nx_action_reg_load *, struct ofpbuf *ofpacts); +enum ofperr nxm_reg_load_from_openflow12_set_field( + const struct ofp12_action_set_field * oasf, struct ofpbuf *ofpacts); enum ofperr nxm_reg_move_check(const struct ofpact_reg_move *, const struct flow *);