[PATCH net-next v5 3/6] tls: loop in tls_sw_splice_read() until it has a record

Hannes Reinecke hare at suse.de
Tue Nov 3 23:42:10 PST 2026


On 11/3/26 10:43 PM, Martin Belanger via B4 Relay wrote:
> From: Martin Belanger <martin.belanger at dell.com>
> 
> tls_sw_splice_read() passes one record to the pipe. It takes the
> record from rx_list or decrypts the next record from the socket.
> 
> The next patch lets the kernel consume a KeyUpdate record. splice()
> then has no record to pass on and must decrypt the next one. Make the
> decrypt step a loop that runs until splice() has a record.
> 
> No functional change: the loop sets skb on its first pass.
> 
> Signed-off-by: Martin Belanger <martin.belanger at dell.com>
> ---
>   net/tls/tls_sw.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list