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: ("xlate: Emit datapath clone only when necessary.")
Acked-by: Andy Zhou
@@ -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;
}
}
