diff options
author | Daniele Di Proietto <diproiettod@vmware.com> | 2015-12-04 15:01:37 -0800 |
---|---|---|
committer | Jarno Rajahalme <jarno@ovn.org> | 2015-12-04 15:01:37 -0800 |
commit | 7b27258c4e0821ade73e0e0a9bd5339328489523 (patch) | |
tree | 8a03c27808f64a570c4337d4c1afb154e6d2a024 /lib/odp-util.h | |
parent | 819571b575f5e750637fc753405e5a46dd5e67a6 (diff) | |
download | openvswitch-7b27258c4e0821ade73e0e0a9bd5339328489523.tar.gz |
ofproto-dpif: Validate NAT action support.
The NAT validation is similar (and based on) the existing conntrack
validation: when a dpif backer is created, we try to install a flow with
the ct_state NAT bits set. If the flow setup fails we assume that the
backer doesn't support NAT and we reject OpenFlow flows with a NAT
action or a match on the ct_state NAT bits.
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Diffstat (limited to 'lib/odp-util.h')
-rw-r--r-- | lib/odp-util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h index a9364164f..35849ae24 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -178,6 +178,11 @@ struct odp_support { bool ct_zone; bool ct_mark; bool ct_label; + + /* If true, it means that the datapath supports the NAT bits in + * 'ct_state'. The above 'ct_state' member must be true for this + * to make sense */ + bool ct_state_nat; }; struct odp_flow_key_parms { |