From: "plaisthos (Code Review)" Date: Thu, 9 Mar 2023 14:04:36 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, openvpn-devel@lists.sourceforge.net , lstipakov@...277..., a@...2181... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="kxzZaUJABdU="; 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 , openvpn-devel@lists.sourceforge.net --kxzZaUJABdU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, ordex. ordex has uploaded this change for review. ( http://gerrit.openvpn.net/c/op= envpn/+/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 has proved to be overkill and performance critical. The amount of control traffic can also easily overrun the NetLink buffer when a server has enough clients connected. Stop using NetLink to send/receive control packets and just use the transport socket as if DCO was not there at all. Under the hood DCO will redirect control packets to the transport socket without altering them, so that userspace can happily process them as usual. Change-Id: Ia1297c3ae9a28b188ed21ad21ae96fff3d02ee4d [lev@...515...: ensure win_dco flag is still exposed] Signed-off-by: Antonio Quartulli --- 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, 52 insertions(+), 296 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/28/28/4 -- 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: 4 Gerrit-Owner: ordex Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: stipa Gerrit-Attention: cron2 Gerrit-Attention: ordex Gerrit-MessageType: newchange --kxzZaUJABdU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, ordex.

ordex has uploaded this change for review.

View Change<= /p>

=
dco: don't use NetLink to exchange control packets

Using NetLink= has proved to be overkill and performance critical.
The amount of contr= ol traffic can also easily overrun the NetLink buffer
when a server has = enough clients connected.

Stop using NetLink to send/receive control= packets and just use the
transport socket as if DCO was not there at al= l.

Under the hood DCO will redirect control packets to the transport= socket
without altering them, so that userspace can happily process the= m as
usual.

Change-Id: Ia1297c3ae9a28b188ed21ad21ae96fff3d02ee4d<= br>[lev@...515...: ensure win_dco flag is still exposed]
Signed-off-by: = Antonio Quartulli <a@...2181...>
---
M src/openvpn/dco.c
M s= rc/openvpn/dco.h
M src/openvpn/dco_freebsd.c
M src/openvpn/dco_freebs= d.h
M src/openvpn/dco_linux.c
M src/openvpn/dco_linux.h
M src/open= vpn/dco_win.c
M src/openvpn/forward.c
M src/openvpn/init.c
M src/o= penvpn/mtcp.c
M src/openvpn/multi.c
M src/openvpn/ovpn_dco_linux.hM src/openvpn/socket.c
M src/openvpn/socket.h
14 files changed, 52 i= nsertions(+), 296 deletions(-)

git pull ssh://gerrit.openvpn.net:=
29418/openvpn refs/changes/28/28/4

To view, visit change 28. To unsubscri= be, 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: 4
Gerrit-Owner: ordex <a@...2181...>
Gerrit-Reviewer: cron2
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: stipa <lstipakov@...277...> <= /div>
Gerrit-Attention: cron2
Gerrit-Attention: ordex <a@...2181...> <= /div>
Gerrit-MessageType: newchange
--kxzZaUJABdU=--