summaryrefslogtreecommitdiff
path: root/tests/system-userspace-macros.at
diff options
context:
space:
mode:
authorYi-Hung Wei <yihung.wei@gmail.com>2019-08-28 15:14:29 -0700
committerJustin Pettit <jpettit@ovn.org>2019-09-26 13:51:04 -0700
commit187bb41fbf447acf9fb6ac117dc923bbe649e78c (patch)
treef11eb9504e45897e7cb73065bf542e74cae8f05f /tests/system-userspace-macros.at
parentebe62ec1b9157bfdcc13288e38e67c05a41dc293 (diff)
downloadopenvswitch-187bb41fbf447acf9fb6ac117dc923bbe649e78c.tar.gz
ofproto-dpif-xlate: Translate timeout policy in ct action
This patch derives the timeout policy based on ct zone from the internal data structure that we maintain on dpif layer. It also adds a system traffic test to verify the zone-based conntrack timeout feature. The test uses ovs-vsctl commands to configure the customized ICMP and UDP timeout on zone 5 to a shorter period. It then injects ICMP and UDP traffic to conntrack, and checks if the corresponding conntrack entry expires after the predefined timeout. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> ofproto-dpif: Checks if datapath supports OVS_CT_ATTR_TIMEOUT This patch checks whether datapath supports OVS_CT_ATTR_TIMEOUT. With this check, ofproto-dpif-xlate can use this information to decide whether to translate the ct timeout policy. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'tests/system-userspace-macros.at')
-rw-r--r--tests/system-userspace-macros.at19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/system-userspace-macros.at b/tests/system-userspace-macros.at
index a411e3d89..0a21db88a 100644
--- a/tests/system-userspace-macros.at
+++ b/tests/system-userspace-macros.at
@@ -98,6 +98,16 @@ m4_define([CHECK_CONNTRACK_FRAG_OVERLAP])
#
m4_define([CHECK_CONNTRACK_NAT])
+# CHECK_CONNTRACK_TIMEOUT()
+#
+# Perform requirements checks for running conntrack customized timeout tests.
+* The userspace datapath does not support this feature yet.
+#
+m4_define([CHECK_CONNTRACK_TIMEOUT],
+[
+ AT_SKIP_IF([:])
+])
+
# CHECK_CT_DPIF_PER_ZONE_LIMIT()
#
# Perform requirements checks for running ovs-dpctl ct-[set|get|del]-limits per
@@ -295,3 +305,12 @@ m4_define([OVS_CHECK_KERNEL_EXCL],
[
AT_SKIP_IF([:])
])
+
+# VSCTL_ADD_DATAPATH_TABLE()
+#
+# Create datapath table "netdev" for userspace tests in ovsdb
+m4_define([VSCTL_ADD_DATAPATH_TABLE],
+[
+ AT_CHECK([ovs-vsctl -- --id=@m create Datapath datapath_version=0 -- set Open_vSwitch . datapaths:"netdev"=@m], [0], [stdout])
+ DP_TYPE=$(echo "netdev")
+])