From patchwork Mon Nov 9 11:25:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralf Lici X-Patchwork-Id: 5616 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:63cb:10b0:11a:a05e:cb97 with SMTP id w11-n1csp529078lat; Mon, 9 Nov 2026 03:25:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEdOMqQMWLQwgMGWQ00eEVNbwvd+AGcm31Uny0JHUUv1i56CZ6Gcq6oixpIoClfdXJ22NGLsW9WkYI=@openvpn.net X-Received: by 2002:a05:7300:f48a:b0:36a:1b62:da with SMTP id 5a478bee46e88-3725632241cmr7235510eec.12.1794223550116; Mon, 09 Nov 2026 03:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794223550; cv=none; d=google.com; s=arc-20260327; b=jWn2hRAFOiagynMHUwEqzvW2Dr7/1F4ZeONquvEdgm/Tdf3h0bHEKOzWVsPf+yecoX pFmSlhCj+/D22VB1+ZzY2SXdqEewV8qt7+UqpQSl28rd55P9ikulg9o4idjMMTt/cGhA p32iA38sTs07wRQ4Rq5AMgx41hCaEHtgLPTUuYn56/1eKFjqhQEIEw++zk0jmj+H2IoH XzsjUzPqyRZnpYeztfENEkK+q6GPU3bMjfza69Pnz1zxRA0AKyNdmyAn9Hish6BVWVls FDvE+XNbnjheAla+SndtgSP1JWQ80ljr897NYXDdTblGWVj+nxq3GDnottO0NL3OL0yb zNRA== 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=a4ws/NRpKKny0gXw7cJ8nvLi/nuXf4BcHX6Pr6cnYo8=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=ECiajkflQyknjUPMbsftpDR/a4KkBm1m2/IOn1V4siZ8b0/MpUwTYGxO9FHf/GFpfE PvKcBVm/MYXUi9GK3ld+GVmIj8z9Lb3I5CYa2fPU7Yxpzxu/ZOIpZDSXvL1Sd4T9i8ap SnaV6wvWX33Bfihm71wEs9jYbx0D+DSPb5yav20sksAltWO4Ewkh9mIBxkrTz3qCEA30 deBRC3fOY2qh8qLDVRxwZ13SfJFVmaRqh8erZ/Jv8Qm1ifBtwQqXB2Q4JvbGZWxPwgSm ndqH/rRBYdn+GlFLIOPHakyUs+xJTCFo4QyNkZQj/Vy6OLGslrqNB5+yiCMxNxC5SSiY kADg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=cbSW6+MR; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=B3Ir29Zx; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=Jw0CBJEh; dkim=neutral (body hash did not verify) header.i=@mandelbit.com header.s=MBO0001 header.b=LzrMBtub; 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-372657126b1si13725840eec.22.2026.11.09.03.25.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Nov 2026 03:25:50 -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=cbSW6+MR; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=B3Ir29Zx; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=Jw0CBJEh; dkim=neutral (body hash did not verify) header.i=@mandelbit.com header.s=MBO0001 header.b=LzrMBtub; 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=a4ws/NRpKKny0gXw7cJ8nvLi/nuXf4BcHX6Pr6cnYo8=; b=cbSW6+MR6B/xyt xV01EVCgx7RzPIfY1RyYE/BCSZdO2GKRDODS1AVgL4vjcNm8fJIKx5GpzOSbAqkJSELpPLKgYmIoL dk/16mjTAgroYRs/nxgGBVGSVHEvmxurex1wlZYX7oeFr/hC8Bd+Svx94dsru2G7Ngnn9MFMdpbL5 B8U=; 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 ) id 1xQNVU-000000000Eu-1Wnk; Mon, 09 Nov 2026 11:25:48 +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 ) id 1xQNVT-000000000Ee-0Nmt for openvpn-devel@lists.sourceforge.net; Mon, 09 Nov 2026 11:25:47 +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=6kKkuLkZCGynnGRhj8a+I9cQev0AfdNSRee++Uaqs9Q=; b=B3Ir29Zx4mapvzYn/iI1tfKwmm bAHlIYxJ5ydwWi7ZlAaZzfKvUpL8eTX0veoppdEo9kZvHMx0nvRzVal8rK5s/k8XQXBawROyAhGH4 Ne9kB7mSzjYNpueG2MVCX0zeydyIuVSou4VXQTENNPxKwTxAbcsxnhWRXLCDaLzfieg4=; 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=6kKkuLkZCGynnGRhj8a+I9cQev0AfdNSRee++Uaqs9Q=; b=Jw0CBJEhNhNbSySFBVh6obg3PI AEpW305QZd+aiGRGJLBVypE21ronYvqyv3mj3LhaII6HD8KMEsFm+LjXmXL/vyiaHTV4IXnKs7Xhd gh9yMnwo3d5k988+tvz1sODLILnqctZDFTCshh+XCvh+Lw5KmIZTIPdlSYE5xMGZBBLM=; Received: from mout-b-110.mailbox.org ([195.10.208.55]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xQNVP-000000004rn-2XDu for openvpn-devel@lists.sourceforge.net; Mon, 09 Nov 2026 11:25:47 +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-110.mailbox.org (Postfix) with ESMTPS id 4jNSBl5xywzNlcG for ; Mon, 09 Nov 2026 12:25:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1794223535; 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=6kKkuLkZCGynnGRhj8a+I9cQev0AfdNSRee++Uaqs9Q=; b=LzrMBtubIfdKMq+dWmUxTQvb2EZGqeZLKozACntE8blDtMRxC1+AeB/Z1us7kOkZqKcL7X 4uWTzzHh5Mdus6HjOH11WDDGEE9J8X3zU8K+N+ZU1e17brMrHGpc8atBHBhbjBrvHRRUxd dHM3ikuwi+SHhezpCCQrv266apjP4wUnMhAEGrKr7P9END8qfa7gWCElFTkJV83IY8N34R 8sboNo2dVmSfb0UlkcTBzcANjp0byKGnR7WfYy3PrieN5ePTE3WHzhQ17jy9X4n5mgpLMt mcoQVGWcVpTq+oohZUpuMcm5FNJk6zO4VL3vBPH0EJvCUr76IoveJ6PyhAkapg== 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 To: openvpn-devel@lists.sourceforge.net Date: Mon, 9 Nov 2026 12:25:19 +0100 Message-ID: <1533a769382fd369d6f3e839d870f42efd1b4809.1794223133.git.ralf@mandelbit.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: References: MIME-Version: 1.0 X-Rspamd-Queue-Id: 4jNSBl5xywzNlcG 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: 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 Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-Headers-End: 1xQNVP-000000004rn-2XDu Subject: [Openvpn-devel] [PATCH ovpn net-next v3 4/8] ovpn: record asynchronous transmit crypto X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1881379753492099350 X-GMAIL-MSGID: 1881379753492099350 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 --- 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,