]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ovpn: Introduce OpenVPN DCO support
authorKristof Provost <kp@FreeBSD.org>
Tue, 22 Feb 2022 09:21:38 +0000 (10:21 +0100)
committerKristof Provost <kp@FreeBSD.org>
Tue, 28 Jun 2022 09:33:10 +0000 (11:33 +0200)
commitab91feabcc6f9da21d5c75028153af16d06e679a
treea91a2dc0ba7e4b3c294a5dead018f5a6e0b61e29
parenta25818eb2869ccc56bd711eca14cd7bbbaddd676
ovpn: Introduce OpenVPN DCO support

OpenVPN Data Channel Offload (DCO) moves OpenVPN data plane processing
(i.e. tunneling and cryptography) into the kernel, rather than using tap
devices.
This avoids significant copying and context switching overhead between
kernel and user space and improves OpenVPN throughput.

In my test setup throughput improved from around 660Mbit/s to around
2Gbit/s.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D34340
share/man/man4/Makefile
share/man/man4/ovpn.4 [new file with mode: 0644]
sys/conf/files
sys/kern/kern_jail.c
sys/modules/Makefile
sys/modules/if_ovpn/Makefile [new file with mode: 0644]
sys/net/if_ovpn.c [new file with mode: 0644]
sys/net/if_ovpn.h [new file with mode: 0644]
sys/sys/priv.h