| Message ID | 1533a769382fd369d6f3e839d870f42efd1b4809.1794234673.git.ralf@mandelbit.com |
|---|---|
| State | Changes Requested |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:6022:63cb:10b0:11a:a05e:cb97 with SMTP id
w11-n1csp802953lat;
Mon, 9 Nov 2026 07:09:34 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErEmkz9fXwCtC96fGS8/rbwyBGkMTLQ2dYarB/7Q3a1Wr90y5uAMpjLYd0UQ3LxLLNnUjBc4eO3J2xg=@openvpn.net
X-Received: by 2002:a05:693c:80dc:b0:372:601a:6278 with SMTP id
5a478bee46e88-372601a632bmr8111574eec.33.1794236974231;
Mon, 09 Nov 2026 07:09:34 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1794236974; cv=none;
d=google.com; s=arc-20260327;
b=SSrn04eBDEeyO0lDulPaQIF0o1YXW9VtiYCQghEutl8Gy0tOlOsZLCx2rxqDN5Lsw1
HexQZdL6A2oBpSmpFOVgqXCUKqKHfctk6UzetWpeOjJtqHR7Ap5yCcPP+ZweWQXOKQfi
CZHwKKPzyvsTh9SxiQZyp3wa6oQTI+Zvl30RCXVcaU/VzrtTcMuBELpTdt6/OdYqHZOJ
yhfcqkDu+HOG6+0tGL226JCSdpe41UTMTj6+Q4oYWyYCMTDoQXbd2oyWSCO2N4N8qAK2
Oo22PaBlXgIuL+7z2ozknLWiNCgiWCMFCfTLHUDtOmqAPD3XJmBgy74Yuv6RS1oK3LSr
VrgQ==
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:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature:dkim-signature;
bh=XoFwCjoWgDpOHTgXyiq+FNFAdrI/y7uPXK856FbJJ7o=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=VgHeVHlSUq4CcQ69/3jD9Cx2XFZHPv06wuXcJZUmbFMnvchyOShKvHyUya9HF5eNh0
ivwzUBxR90nQKK1gFcR2F1jL72yDqTiR5bwruL+PMHk3fTa612h1bE9VNHFruKVlef+y
58vuGYduKeI9wp3fY7GHQ1LNYmQRWmY5tUVmfyRU/HMWKuSWlO+8yHkPbJUGnF+tvWMU
+Nvl0mqvdPxDHIlLHSHoCb5NZ1Q+3YXPf+gYJSHXI6q4bGJX9EFyk6oOekmVb47hiEd4
bJoCb3lDCrMFHur965V2la/2Zne8baRrSkgN5tapZKShWHmgTw030hDiCOYouSdarMGp
MamA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=Z5j22aRZ;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=Io2IexEQ;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b="EA/MlCNB";
dkim=neutral (body hash did not verify) header.i=@mandelbit.com
header.s=MBO0001 header.b=LnWoQXdV;
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-37266bcbd69si13903058eec.80.2026.11.09.07.09.33
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Mon, 09 Nov 2026 07:09:34 -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=Z5j22aRZ;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=Io2IexEQ;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b="EA/MlCNB";
dkim=neutral (body hash did not verify) header.i=@mandelbit.com
header.s=MBO0001 header.b=LnWoQXdV;
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:References:In-Reply-To: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:List-Unsubscribe-Post:
List-Owner; bh=XoFwCjoWgDpOHTgXyiq+FNFAdrI/y7uPXK856FbJJ7o=; b=Z5j22aRZPBsAsq
WaIZHjQJ16hRymEAzmiQ4BL1+Rq/kKkwRXB5THerVfxzbZoMCX/gQXnZr+mi9ytLBLpx4jQqMJT2T
pL31ZugUkQYKhYAVnPZXmodyRkrPrZJ3zhEQGYms8xLh0RDG2aaxXi/+NpdrPUMkq8o7Lz+Pzezpe
Fck=;
Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com)
by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.100.1)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1xQQzy-0000000076v-3QlP;
Mon, 09 Nov 2026 15:09:30 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-4.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 1xQQzw-0000000076f-2dHU
for openvpn-devel@lists.sourceforge.net;
Mon, 09 Nov 2026 15:09:28 +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:References:
In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:
List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=PO82ieRgqZM5Ro5q9/54BT5ufq6qtRF29d2pxlBvaoc=; b=Io2IexEQ3TSkK4+iR/ic7nqysG
kpHKRd6MD4XriRLdW/aUnDKQ79ZTvTF9OQFRfnw6a2T8Ze4uAauTWgh5OTzqQ5rdAF0ZCXczJ21H9
75PTYgokDFTOnmpaNwL+8RqQknjvuP8JkrACF9VdS7YXyqksVs0oXRNYOiVP8CHIWOTo=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=PO82ieRgqZM5Ro5q9/54BT5ufq6qtRF29d2pxlBvaoc=; b=EA/MlCNBz1c7j2FqekjRtKJhSV
WhdJq70lL4khRJg7YvCbtT5w0wL5yFNEk7Un0AiIOsrU+0ayJjY2lDbLwO8z7XMVwFjk5V0X+DJX0
d6YRnQgCTVkinQB1esXefst8fvAkA29V2uu3lErRrPX7j+YUQ2XhlVqN7TeupQNX5SRI=;
Received: from mout-b-210.mailbox.org ([195.10.208.40])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1)
id 1xQQzv-000000000Eo-0NxD for openvpn-devel@lists.sourceforge.net;
Mon, 09 Nov 2026 15:09:28 +0000
Received: from smtp2.mailbox.org (smtp2.mailbox.org
[IPv6:2001:67c:2050:b231:465::2])
(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-210.mailbox.org (Postfix) with ESMTPS id 4jNY8t67dGzFqrD
for <openvpn-devel@lists.sourceforge.net>;
Mon, 09 Nov 2026 16:09:18 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com;
s=MBO0001; t=1794236958;
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:
in-reply-to:in-reply-to:references:references;
bh=PO82ieRgqZM5Ro5q9/54BT5ufq6qtRF29d2pxlBvaoc=;
b=LnWoQXdV+DiY3hSrfyYapuBZWPlm5DAAbLkNyQfOjR+EQTW50KGScz4qNgqx/1GWDzQlEh
nTeWzL9gsEYPQ/b7djldxgcFqAKoaqqCQoD1kzsipSl6LQ3MxDYDAvjyjH5ztxDqXrxrSd
0QdRL5cwUZ6F0IJzLNT9Icuj5TOZNm237/Og9Wb38T6OBkORK2M1Z843i6DOyO3JEMmYeU
zfALJsnsmLVDpryZmpm7rL0awvLQ08yhm9Fp9rI3hftKshLEkLR1T9xaIGjwW5P0mVdCI4
1aTpOG5P/y13L0atoMeE/PN2ldfsbz+tizu7/eLxu2pkcuCEYKBH6pSpFPxkxw==
Authentication-Results: outgoing_mbo_mout; dkim=none;
spf=pass (outgoing_mbo_mout: domain of ralf@mandelbit.com designates
2001:67c:2050:b231:465::2 as permitted sender)
smtp.mailfrom=ralf@mandelbit.com
From: Ralf Lici <ralf@mandelbit.com>
To: openvpn-devel@lists.sourceforge.net
Date: Mon, 9 Nov 2026 16:09:02 +0100
Message-ID:
<1533a769382fd369d6f3e839d870f42efd1b4809.1794234673.git.ralf@mandelbit.com>
X-Mailer: git-send-email 2.56.0
In-Reply-To: <cover.1794234673.git.ralf@mandelbit.com>
References: <cover.1794234673.git.ralf@mandelbit.com>
MIME-Version: 1.0
X-Rspamd-Queue-Id: 4jNY8t67dGzFqrD
X-Spam-Score: -0.2 (/)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-1.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: The UDP GSO output path introduced next requires a
synchronous
encrypt transform. Record the transform type in the immutable key slot when
it is created, avoiding repeated inspection of the crypto alg [...]
Content analysis details: (-0.2 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-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_AU Message has a valid DKIM or DK signature from author's
domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Headers-End: 1xQQzv-000000000Eo-0NxD
Subject: [Openvpn-devel] [PATCH ovpn net-next v4 4/9] ovpn: record
asynchronous transmit crypto
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: 1881393829585044017
X-GMAIL-MSGID: 1881393829585044017
|
| Series |
ovpn: preserve GSO batching
|
|
Commit Message
Ralf Lici
Nov. 9, 2026, 3:09 p.m. UTC
The UDP GSO output path introduced next requires a synchronous encrypt
transform. Record the transform type in the immutable key slot when it
is created, avoiding repeated inspection of the crypto algorithm flags
in the data path.
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
---
No changes since v3 https://lore.kernel.org/openvpn-devel/1533a769382fd369d6f3e839d870f42efd1b4809.1794223133.git.ralf@mandelbit.com/
New in v3.
drivers/net/ovpn/crypto.h | 2 ++
drivers/net/ovpn/crypto_aead.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/drivers/net/ovpn/crypto.h b/drivers/net/ovpn/crypto.h index e3feb16d5498..8ce324e9b58f 100644 --- a/drivers/net/ovpn/crypto.h +++ b/drivers/net/ovpn/crypto.h @@ -39,6 +39,8 @@ struct ovpn_peer_key_reset { struct ovpn_crypto_key_slot { u8 key_id; + /* whether the encrypt transform is asynchronous */ + bool async; struct crypto_aead *encrypt; struct crypto_aead *decrypt; diff --git a/drivers/net/ovpn/crypto_aead.c b/drivers/net/ovpn/crypto_aead.c index 30299581422d..5e5320338165 100644 --- a/drivers/net/ovpn/crypto_aead.c +++ b/drivers/net/ovpn/crypto_aead.c @@ -462,6 +462,7 @@ ovpn_aead_crypto_key_slot_new(const struct ovpn_key_config *kc) ks->encrypt = NULL; goto destroy_ks; } + ks->async = crypto_tfm_is_async(crypto_aead_tfm(ks->encrypt)); ks->decrypt = ovpn_aead_init("decrypt", alg_name, kc->decrypt.cipher_key,