mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
committed by
Justin Pettit
parent
ebe62ec1b9
commit
187bb41fbf
@@ -7576,6 +7576,7 @@ const struct dpif_class dpif_netdev_class = {
|
||||
NULL, /* ct_timeout_policy_dump_start */
|
||||
NULL, /* ct_timeout_policy_dump_next */
|
||||
NULL, /* ct_timeout_policy_dump_done */
|
||||
NULL, /* ct_get_timeout_policy_name */
|
||||
dpif_netdev_ipf_set_enabled,
|
||||
dpif_netdev_ipf_set_min_frag,
|
||||
dpif_netdev_ipf_set_max_nfrags,
|
||||
|
Reference in New Issue
Block a user