diff options
author | Binbin Xu <xu.binbin1@zte.com.cn> | 2016-09-21 03:54:06 +0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-09-20 08:11:09 -0700 |
commit | 814aac29b582ec6be6ac984c158e6db1a8f139e5 (patch) | |
tree | 0b16a05c964139c4ad5a0cfd0cf1797dbca29e60 /include | |
parent | 8483173bff2589a2c1515f711bc0e337792f1995 (diff) | |
download | openvswitch-814aac29b582ec6be6ac984c158e6db1a8f139e5.tar.gz |
ofp-actions: Remove unused OFPACT_FOR_EACH_TYPE.
Signed-off-by: Binbin Xu <xu.binbin1@zte.com.cn>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/ofp-actions.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/openvswitch/ofp-actions.h b/include/openvswitch/ofp-actions.h index 675920173..67e84fa92 100644 --- a/include/openvswitch/ofp-actions.h +++ b/include/openvswitch/ofp-actions.h @@ -203,22 +203,6 @@ ofpact_end(const struct ofpact *ofpacts, size_t ofpacts_len) } static inline const struct ofpact * -ofpact_find_type(const struct ofpact *a, enum ofpact_type type, - const struct ofpact * const end) -{ - while (a < end) { - if (a->type == type) { - return a; - } - a = ofpact_next(a); - } - return NULL; -} - -#define OFPACT_FIND_TYPE(A, TYPE, END) \ - ofpact_get_##TYPE##_nullable(ofpact_find_type(A, OFPACT_##TYPE, END)) - -static inline const struct ofpact * ofpact_find_type_flattened(const struct ofpact *a, enum ofpact_type type, const struct ofpact * const end) { @@ -241,13 +225,6 @@ ofpact_find_type_flattened(const struct ofpact *a, enum ofpact_type type, for ((POS) = (OFPACTS); (POS) < ofpact_end(OFPACTS, OFPACTS_LEN); \ (POS) = ofpact_next(POS)) -#define OFPACT_FOR_EACH_TYPE(POS, TYPE, OFPACTS, OFPACTS_LEN) \ - for ((POS) = OFPACT_FIND_TYPE(OFPACTS, TYPE, \ - ofpact_end(OFPACTS, OFPACTS_LEN)); \ - (POS); \ - (POS) = OFPACT_FIND_TYPE(ofpact_next(&(POS)->ofpact), TYPE, \ - ofpact_end(OFPACTS, OFPACTS_LEN))) - /* Assigns POS to each ofpact, in turn, in the OFPACTS_LEN bytes of ofpacts * starting at OFPACTS. * |