diff options
author | Ben Pfaff <blp@ovn.org> | 2017-08-03 13:19:20 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-08-03 13:51:32 -0700 |
commit | 2142be1f91af9650d3e95e2ebfe1428c65c761b8 (patch) | |
tree | f0c0f3d8bd2ee34212802120966729d7fdcb4586 /ofproto | |
parent | 091337a224f522978aba586507f646d74806958b (diff) | |
download | openvswitch-2142be1f91af9650d3e95e2ebfe1428c65c761b8.tar.gz |
ofproto-dpif-xlate: Add OFPACT_ENCAP, OFPACT_DECAP to reversible_actions().
Fixes a broken build when building with --enable-Werror.
I guess that encap and decap are often reversible, but it's safe to
consider them irreversible.
Fixes: eee693934aac ("xlate: Emit datapath clone only when necessary.")
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r-- | ofproto/ofproto-dpif-xlate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 6fa112d47..1c2644c4f 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -5317,6 +5317,8 @@ reversible_actions(const struct ofpact *ofpacts, size_t ofpacts_len) case OFPACT_METER: case OFPACT_NAT: case OFPACT_OUTPUT_TRUNC: + case OFPACT_ENCAP: + case OFPACT_DECAP: return false; } } |