mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ct-dpif, dpif-netlink: Add conntrack timeout policy support
This patch first defines the dpif interface for a datapath to support adding, deleting, getting and dumping conntrack timeout policy. The timeout policy is identified by a 4 bytes unsigned integer in datapath, and it currently support timeout for TCP, UDP, and ICMP protocols. Moreover, this patch provides the implementation for Linux kernel datapath in dpif-netlink. In Linux kernel, the timeout policy is maintained per L3/L4 protocol, and it is identified by 32 bytes null terminated string. On the other hand, in vswitchd, the timeout policy is a generic one that consists of all the supported L4 protocols. Therefore, one of the main task in dpif-netlink is to break down the generic timeout policy into 6 sub policies (ipv4 tcp, udp, icmp, and ipv6 tcp, udp, icmp), and push down the configuration using the netlink API in netlink-conntrack.c. This patch also adds missing symbols in the windows datapath so that the build on windows can pass. Appveyor CI: * https://ci.appveyor.com/project/YiHungWei/ovs/builds/26387754 Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Acked-by: Alin Gabriel Serdean <aserdean@ovn.org> Signed-off-by: Justin Pettit <jpettit@ovn.org>
This commit is contained in:
committed by
Justin Pettit
parent
934f54a1bc
commit
1f16131837
@@ -7566,6 +7566,12 @@ const struct dpif_class dpif_netdev_class = {
|
||||
NULL, /* ct_set_limits */
|
||||
NULL, /* ct_get_limits */
|
||||
NULL, /* ct_del_limits */
|
||||
NULL, /* ct_set_timeout_policy */
|
||||
NULL, /* ct_get_timeout_policy */
|
||||
NULL, /* ct_del_timeout_policy */
|
||||
NULL, /* ct_timeout_policy_dump_start */
|
||||
NULL, /* ct_timeout_policy_dump_next */
|
||||
NULL, /* ct_timeout_policy_dump_done */
|
||||
dpif_netdev_ipf_set_enabled,
|
||||
dpif_netdev_ipf_set_min_frag,
|
||||
dpif_netdev_ipf_set_max_nfrags,
|
||||
|
Reference in New Issue
Block a user