| Message ID | cover.1794922487.git.ralf@mandelbit.com |
|---|---|
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:6022:9292:b0:11a:f58a:e788 with SMTP id
dc18csp2609510lab;
Tue, 17 Nov 2026 06:11:23 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErG/jZsMc8iC6FnBBYkeFzpaAejHI6kvGeUKtQBLLzUASXbo/4vNxtZV0odTxLr1WL9NHK4cwjjSAF4=@openvpn.net
X-Received: by 2002:a05:693c:69d4:b0:37f:73f9:aee7 with SMTP id
5a478bee46e88-37f73f9b141mr5675773eec.5.1794924683293;
Tue, 17 Nov 2026 06:11:23 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1794924683; cv=none;
d=google.com; s=arc-20260327;
b=ZyVAznPt7k2u5VFAphNOBVp5pp9g7Zf0ABRqXPrgolTIJWfesjdFEc4RpBAvswIQF5
uIcZdaYyAjR/aqJeGOlzM8Nu7RkL7hHoWDpI0ap532KjT4ZglygynNV3MIDqBfU6XMl1
jAk5IK23+IgHrqz2dCtbbX/genMqwD4rgMTOhHcx0O5hn93oGuau33gCUWfwi4bz1i3P
nOeZlJwAisAVlGHtO9X83+aZTvwdhVujJXF/HSChhG9eHLtLghS3+Zx/gyMHiQY+IWKE
GKplj/9qyeG9550X6YCfcFScWOlRFpcU4iYjwRDIBGkuwRKrWiz3z7OhxiqYrgCTWLJ3
Xr8Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:message-id:date:to:from:dkim-signature:dkim-signature
:dkim-signature:dkim-signature;
bh=y0jJO60RI4cS5oQpxrOLRC0EDcFhSXenx8DVYJrvkiE=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=Ix4xbcPJjgE8r86mU3O6qMg92/18IkopddlWST0LTkMSJr5V/S9FfVDM7oRfcodi1e
WIVXAo1cDnWZj7h7OKAatdTgiJ2Rp6gcoAZPaWsxcMx3Z9Kx1/OJuSPxV/e7kTCBnmEn
xpDaTfDXCB47C88Yo/xCVq7Ab6W1/E1hh9A+on1tmPfMWzoZWt+frxK5iwTOokYyY1S5
SMdUuNNU9xc4iBt2DPpwHV66P4TysyekDFsxz61OL9O1qNEqHe3TPP0Uw6CuAGGiXwXB
frlePzXtxz3hwDbE1pjy1JWAcncDD3DGh856aounDiU6U+Gqq2VP7ogLIC8gafjWoEX7
AVxQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=d0IhLdAb;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=GVW7EtOz;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=IdzRtET4;
dkim=neutral (body hash did not verify) header.i=@mandelbit.com
header.s=MBO0001 header.b=byICDLmr;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
5a478bee46e88-3795ab727b9si56779385eec.55.2026.11.17.06.11.22
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Tue, 17 Nov 2026 06:11:23 -0800 (PST)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=d0IhLdAb;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=GVW7EtOz;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=IdzRtET4;
dkim=neutral (body hash did not verify) header.i=@mandelbit.com
header.s=MBO0001 header.b=byICDLmr;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:Message-ID:Date:To:From:Sender:Reply-To:Cc:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Unsubscribe-Post:List-Owner;
bh=y0jJO60RI4cS5oQpxrOLRC0EDcFhSXenx8DVYJrvkiE=; b=d0IhLdAbArKfpdgKRd19DeCKEv
tMxj+Zf9P+rTQ5iK8FBVn2cF04ZahfUSeCJ7+sN+kk/Tya2oyFbI70w2Wc+xDeYCWebYz54GoBy5J
32T9ii6k/VVEWk5NG3DuX4dGKfigsuTOyQAW+zeQnnBMZ4erP7FcXr8XoDrM5KEjgMy8=;
Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com)
by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1xTJu5-000000007Dm-19TL;
Tue, 17 Nov 2026 14:11:21 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1)
(envelope-from <ralf@mandelbit.com>) id 1xTJu4-000000007De-0Tms
for openvpn-devel@lists.sourceforge.net;
Tue, 17 Nov 2026 14:11:20 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=toVNx3Jt+2HYxiSKTV/0p0r8WGVzsTLqmPqWmPOVKY8=; b=GVW7EtOzsN9yfOtTTYtmWqKj2V
3XWfGsAQ1+Ynj1B5+7kq6I/ZvLPrN70xhSBZ6wX7i4eyk7oAYWrIzwvUQKxo5lTp1x6k5ksGam2U0
sh/cJ8+KvB2O13ggBY324qqDcbj91iyZzfDG1MomKYiPqg2k/qo2zjjtR55+lGMTV8OI=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:To:From:
Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date:
Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:
References:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=toVNx3Jt+2HYxiSKTV/0p0r8WGVzsTLqmPqWmPOVKY8=; b=IdzRtET4WVCnjyJHwaA0c7A8ly
8/vXmMFpC8v6G/rcWvleUolAGoG85yePeccZGc7K/TK1QAQt8F53VSU1dBQILyNuRO2in8WEhRFmp
72TbC6daKU1nn3Ean+bn1M08SOaHbFLzq3GgfXp9OX/b9+l+tlOFAg1YcV1yfHJvV/J4=;
Received: from mout-b-112.mailbox.org ([195.10.208.42])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1)
id 1xTJu1-000000007sp-16pg for openvpn-devel@lists.sourceforge.net;
Tue, 17 Nov 2026 14:11:20 +0000
Received: from smtp102.mailbox.org (smtp102.mailbox.org
[IPv6:2001:67c:2050:b231:465::102])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits)
server-digest
SHA256) (No client certificate requested)
by mout-b-112.mailbox.org (Postfix) with ESMTPS id 4jTRV51NFZz5wVw
for <openvpn-devel@lists.sourceforge.net>;
Tue, 17 Nov 2026 15:11:09 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com;
s=MBO0001; t=1794924669;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding;
bh=toVNx3Jt+2HYxiSKTV/0p0r8WGVzsTLqmPqWmPOVKY8=;
b=byICDLmr/5Zh5J/wrqKr4c8bhoE3G7t3dw2fb8W8viP11Gx/awbqmLVf7RnIobpcAtqWTu
JZmGvFnasS9D+jd9ST6kBE4dRW+895SVP8Ip2d8fO/v4nCrfnigS8boQ8Zl1ADJlyTHqid
YMF53PJLl/UPvs3kWWjwPyb5zkoWmMsy7bSuLRKaItIknPn2NbfSYZbvDLIxoFh7201Xhe
ZySrWQV+PTqCQcvhls36ITh57hz5RG1Qdwk0jBKBj/Bw6ark4tcwl1drJ1eWGmP1txfOlb
PsjsX9An6/03rf7aggYaanfLSPiuol0evzPueHhSnbl/MC6AEdi32Y80BhLwDw==
Authentication-Results: outgoing_mbo_mout; dkim=none;
spf=pass (outgoing_mbo_mout: domain of ralf@mandelbit.com designates
2001:67c:2050:b231:465::102 as permitted sender)
smtp.mailfrom=ralf@mandelbit.com
From: Ralf Lici <ralf@mandelbit.com>
To: openvpn-devel@lists.sourceforge.net
Date: Tue, 17 Nov 2026 15:10:57 +0100
Message-ID: <cover.1794922487.git.ralf@mandelbit.com>
X-Mailer: git-send-email 2.56.0
MIME-Version: 1.0
X-Rspamd-Queue-Id: 4jTRV51NFZz5wVw
X-Spam-Score: -0.2 (/)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-2.hosts.colo.sdot.me",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Hi, ovpn keeps the inner socket as skb->sk on encrypted UDP
packets, so that write accounting and TCP Small Queues keep working. As a
consequence, netdev_pick_tx selects the lower device's TX queue as if [...]
Content analysis details: (-0.2 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
[195.10.208.42 listed in wl.mailspike.net]
X-Headers-End: 1xTJu1-000000007sp-16pg
Subject: [Openvpn-devel] [PATCH ovpn net-next 0/4] ovpn: select physical TX
queues from the outer flow
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: 1882114944825547543
X-GMAIL-MSGID: 1882114944825547543
|
| Series |
ovpn: select physical TX queues from the outer flow
|
|
Message
Ralf Lici
Nov. 17, 2026, 2:10 p.m. UTC
Hi, ovpn keeps the inner socket as skb->sk on encrypted UDP packets, so that write accounting and TCP Small Queues keep working. As a consequence, netdev_pick_tx selects the lower device's TX queue as if the packet still belonged to the inner flow: from that socket's cached queue, from XPS according to the transmitting CPU, or from a recorded RX queue. When several inner flows are sent from different CPUs, one outer OpenVPN flow, which carries a single packet-ID sequence, is spread over several hardware queues, and the resulting reordering can exceed the receiver's replay window. Patch 1 adds an skb bit which makes netdev_pick_tx select the queue from the packet hash instead, and patch 2 sets it in ovpn after clearing the inner hash, so that the lower device hashes the outer tuple. Patches 3 and 4 let ovpn set that hash directly from the flowi it routes with instead of dissecting every outer packet, which requires restoring __get_hash_from_flowi4. Patches 1 and 3 change net core code (include/linux/skbuff.h, net/core/dev.c, include/net/flow.h and net/core/flow_dissector.c) and need review from the core networking maintainers when the series is forwarded to netdev. The series also applies cleanly to the current net-next. With one peer between two directly connected mlx5 ports and four or eight inner TCP flows sent from different CPUs, the outer flow used five to nine TX queues and the receiver rejected 2000 to 4800 packets per 20-second run because of the replay window. With the series, all runs used a single TX queue and no packet was rejected. Thanks, Ralf Lici Mandelbit Srl --- Ralf Lici (4): net: allow selecting TX queues from the packet hash ovpn: select physical TX queues from the outer flow net: restore __get_hash_from_flowi4 ovpn: hash the outer flow from its flowi drivers/net/ovpn/io.c | 1 + drivers/net/ovpn/udp.c | 9 +++++++++ include/linux/skbuff.h | 31 +++++++++++++++++++++++++++++++ include/net/flow.h | 1 + net/core/dev.c | 8 ++++++-- net/core/flow_dissector.c | 16 ++++++++++++++++ 6 files changed, 64 insertions(+), 2 deletions(-) base-commit: 7ccc5e05043b1bb84326b19a2b05938d8f7a2ae6