diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2019-08-28 15:14:24 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@ovn.org> | 2019-09-26 13:50:17 -0700 |
commit | 1f1613183733781084f001ce0116bd4d6eee3d32 (patch) | |
tree | 7c27f96969efc00434571bb727230dea5020c6b1 /include/windows | |
parent | 934f54a1bcb6823e38db8c7dc6dda5af2fb38b0c (diff) | |
download | openvswitch-1f1613183733781084f001ce0116bd4d6eee3d32.tar.gz |
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>
Diffstat (limited to 'include/windows')
-rw-r--r-- | include/windows/automake.mk | 1 | ||||
-rw-r--r-- | include/windows/linux/netfilter/nfnetlink_cttimeout.h | 0 |
2 files changed, 1 insertions, 0 deletions
diff --git a/include/windows/automake.mk b/include/windows/automake.mk index 382627b51..883bbbf5d 100644 --- a/include/windows/automake.mk +++ b/include/windows/automake.mk @@ -15,6 +15,7 @@ noinst_HEADERS += \ include/windows/linux/netfilter/nf_conntrack_tcp.h \ include/windows/linux/netfilter/nfnetlink.h \ include/windows/linux/netfilter/nfnetlink_conntrack.h \ + include/windows/linux/netfilter/nfnetlink_cttimeout.h \ include/windows/linux/pkt_sched.h \ include/windows/linux/types.h \ include/windows/net/if.h \ diff --git a/include/windows/linux/netfilter/nfnetlink_cttimeout.h b/include/windows/linux/netfilter/nfnetlink_cttimeout.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/include/windows/linux/netfilter/nfnetlink_cttimeout.h |