From: "plaisthos (Code Review)" Date: Mon, 13 Mar 2023 13:43:07 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, lstipakov@...277..., a@...2181... Message-ID: <13508d26ad898a1381f507e16306897d54699c00-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="zM4xQpfjKSA="; 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 --zM4xQpfjKSA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable plaisthos has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/= +/28?usp=3Demail ) 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(-) -- 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: merged --zM4xQpfjKSA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

plaisthos submitted this change.

View Change

dco: don't use NetLink to exchange cont=
rol packets

Using NetLink for control messages did not work out as i= t did lead to
kernel side buffer congestion during heavy client activity= .

With this patch DCO will redirect control packets directly to the<= br>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-dc= o" which does control messages
via netlink. From this commit on, O= penVPN requests a kernel module named
"ovpn-dco-v2" which brin= gs the kernel change corresponding to this commit.

If the system onl= y has "the wrong module" available (either way), OpenVPN
will = log

... Kernel support for ovpn-dco missing, disabling data chann= el offload.

and proceed without kernel support.

Change-Id: Ia= 1297c3ae9a28b188ed21ad21ae96fff3d02ee4d
[lev@...515...: ensure win_dco f= lag is still exposed]
Signed-off-by: Antonio Quartulli <a@...2181...&= gt;
Acked-by: Arne Schwabe <arne@...1227...>
Message-Id: <20= 230309210344.5763-1-a@...2181...>
URL: https://www.mail-archive.com/o= penvpn-devel@lists.sourceforge.net/msg26384.html
Signed-off-by: Gert Doe= ring <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 s= rc/openvpn/dco_linux.c
M src/openvpn/dco_linux.h
M src/openvpn/dco_wi= n.c
M src/openvpn/forward.c
M src/openvpn/init.c
M src/openvpn/mtc= p.c
M src/openvpn/multi.c
M src/openvpn/ovpn_dco_linux.h
M src/ope= nvpn/socket.c
M src/openvpn/socket.h
14 files changed, 70 insertions(= +), 297 deletions(-)

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: merged
--zM4xQpfjKSA=--