]> git.ipfire.org Git - thirdparty/linux.git/commit
tls: Factor tls_strp_msg_consume() from tls_strp_msg_done()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 4 Jun 2026 17:48:27 +0000 (13:48 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Jun 2026 03:10:21 +0000 (20:10 -0700)
commit8cf0c70ec84de78f8eb21070929a02ee2d98158e
treee81ce0329bf43575536db1dd95b56f51c4531c1a
parent524bc67509ff3ee9731a02d553ab7e5bc4202e9d
tls: Factor tls_strp_msg_consume() from tls_strp_msg_done()

tls_strp_msg_done() conflates releasing the current record with
checking for the next one via tls_strp_check_rcv(). A subsequent
patch needs to release a record without immediately triggering
that check, so the release step is separated into
tls_strp_msg_consume(). tls_strp_msg_done() is preserved as a
wrapper for existing callers.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20260604-tls-read-sock-v12-4-b114efa6e3e2@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls.h
net/tls/tls_strp.c