diff options
author | Ben Pfaff <blp@nicira.com> | 2013-06-27 11:01:18 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-06-28 09:09:45 -0700 |
commit | 084c53de85f4c01aa815b9ddf7e0aea96ebf79d2 (patch) | |
tree | 6c1f608d20ef1e091f3aff686694f17c3e96bb34 /lib/ofp-actions.h | |
parent | ba0bc9b06fb33b8c7b3d40efdde239020691cb98 (diff) | |
download | openvswitch-084c53de85f4c01aa815b9ddf7e0aea96ebf79d2.tar.gz |
ofpact: New function ovs_instruction_type_from_ofpact_type().
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ofp-actions.h')
-rw-r--r-- | lib/ofp-actions.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h index 8dd2a218f..ddd94d487 100644 --- a/lib/ofp-actions.h +++ b/lib/ofp-actions.h @@ -646,19 +646,10 @@ enum { #undef DEFINE_INST }; - -static inline bool -ofpact_is_instruction(const struct ofpact *a) -{ - /* XXX Write-Actions */ - return a->type == OFPACT_CLEAR_ACTIONS - || a->type == OFPACT_METER - || a->type == OFPACT_WRITE_METADATA - || a->type == OFPACT_GOTO_TABLE; -} - const char *ovs_instruction_name_from_type(enum ovs_instruction_type type); int ovs_instruction_type_from_name(const char *name); +enum ovs_instruction_type ovs_instruction_type_from_ofpact_type( + enum ofpact_type); void ofpact_set_field_init(struct ofpact_reg_load *load, const struct mf_field *mf, const void *src); |