From: "plaisthos (Code Review)" Date: Mon, 13 Mar 2023 13:43:04 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, lstipakov@...277..., a@...2181... Message-ID: <13508d26ad898a1381f507e16306897d54699c00-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ZR3flhYsP+0="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dco: don't use NetLink to exchange control packets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel@lists.sourceforge.net, Lev Stipakov --ZR3flhYsP+0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable plaisthos has uploaded a new patch set (#6) to the change originally create= d by ordex. ( http://gerrit.openvpn.net/c/openvpn/+/28?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: dco: don't use NetLink to exchange control packets ...................................................................... dco: don't use NetLink to exchange control packets Using NetLink for control messages did not work out as it did lead to kernel side buffer congestion during heavy client activity. With this patch DCO will redirect control packets directly to the transport socket without altering them, so that userspace can happily process them as usual. NOTE: this is an API breaking change. Up to this commit, the userland requests a kernel module called "ovpn-dco" which does control messages via netlink. From this commit on, OpenVPN requests a kernel module named "ovpn-dco-v2" which brings the kernel change corresponding to this commit. If the system only has "the wrong module" available (either way), OpenVPN will log ... Kernel support for ovpn-dco missing, disabling data channel offload. and proceed without kernel support. Change-Id: Ia1297c3ae9a28b188ed21ad21ae96fff3d02ee4d [lev@...515...: ensure win_dco flag is still exposed] Signed-off-by: Antonio Quartulli Acked-by: Arne Schwabe Message-Id: <20230309210344.5763-1-a@...2181...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26= 384.html Signed-off-by: Gert Doering --- M src/openvpn/dco.c M src/openvpn/dco.h M src/openvpn/dco_freebsd.c M src/openvpn/dco_freebsd.h M src/openvpn/dco_linux.c M src/openvpn/dco_linux.h M src/openvpn/dco_win.c M src/openvpn/forward.c M src/openvpn/init.c M src/openvpn/mtcp.c M src/openvpn/multi.c M src/openvpn/ovpn_dco_linux.h M src/openvpn/socket.c M src/openvpn/socket.h 14 files changed, 70 insertions(+), 297 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/28/28/6 -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/28?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia1297c3ae9a28b188ed21ad21ae96fff3d02ee4d Gerrit-Change-Number: 28 Gerrit-PatchSet: 6 Gerrit-Owner: ordex Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: stipa Gerrit-MessageType: newpatchset --ZR3flhYsP+0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

plaisthos uploaded patch set #6 to the change originall= y created by ordex.

View Change

The following approvals got outdated = and were removed: Code-Review+2 by plaisthos

dco: don't use NetLink to exchange control p=
ackets

Using NetLink for control messages did not work out as it did= lead to
kernel side buffer congestion during heavy client activity.
=
With this patch DCO will redirect control packets directly to the
tr= ansport socket without altering them, so that userspace can
happily proc= ess them as usual.

NOTE: this is an API breaking change. Up to this= commit, the userland
requests a kernel module called "ovpn-dco&quo= t; which does control messages
via netlink. From this commit on, OpenVP= N requests a kernel module named
"ovpn-dco-v2" which brings th= e kernel change corresponding to this commit.

If the system only has= "the wrong module" available (either way), OpenVPN
will log
... Kernel support for ovpn-dco missing, disabling data channel of= fload.

and proceed without kernel support.

Change-Id: Ia1297c= 3ae9a28b188ed21ad21ae96fff3d02ee4d
[lev@...515...: ensure win_dco flag i= s still exposed]
Signed-off-by: Antonio Quartulli <a@...2181...>Acked-by: Arne Schwabe <arne@...1227...>
Message-Id: <2023030= 9210344.5763-1-a@...2181...>
URL: https://www.mail-archive.com/openvp= n-devel@lists.sourceforge.net/msg26384.html
Signed-off-by: Gert Doering = <gert@...1296...>
---
M src/openvpn/dco.c
M src/openvpn/dco.= h
M src/openvpn/dco_freebsd.c
M src/openvpn/dco_freebsd.h
M src/op= envpn/dco_linux.c
M src/openvpn/dco_linux.h
M src/openvpn/dco_win.cM src/openvpn/forward.c
M src/openvpn/init.c
M src/openvpn/mtcp.cM src/openvpn/multi.c
M src/openvpn/ovpn_dco_linux.h
M src/openvpn/= socket.c
M src/openvpn/socket.h
14 files changed, 70 insertions(+), 2= 97 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn r=
efs/changes/28/28/6

To view, visit change 28. To unsubscribe, or for help= writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia1297c3ae9a28b188ed21ad21ae= 96fff3d02ee4d
Gerrit-Change-Number: 28
Gerrit-PatchSet: 6
Gerrit-Owner: ordex <a@...2181...>
Gerrit-Reviewer: cron2
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: stipa <lstipakov@...277...> <= /div>
Gerrit-MessageType: newpatchset
--ZR3flhYsP+0=--