Thread (29 messages) 29 messages, 3 authors, 2026-08-07

Re: [PATCH net 5/9] net/tls: Consume empty data records in tls_sw_recvmsg()

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-08-03 22:47:08
Also in: linux-kselftest

On Sun, 26 Jul 2026 20:33:33 -0400 Chuck Lever wrote:
quoted hunk ↗ jump to hunk
-		/* Do not use async mode if record is non-data */
+		/* Do not use async mode if record is non-data, or if it
+		 * is empty: the receive loop frees an empty record's skb,
+		 * so its decryption must have completed.
+		 */
 		if (tlm->control == TLS_RECORD_TYPE_DATA)
-			darg.async = ctx->async_capable;
+			darg.async = ctx->async_capable && to_decrypt;
I vaguely recall that we depend on all records being async
uniformly within a single recvmsg call
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help