[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230906185020.165ae46d@kernel.org>
Date: Wed, 6 Sep 2023 18:50:20 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Sabrina Dubroca <sd@...asysnail.net>
Cc: netdev@...r.kernel.org, Dave Watson <davejwatson@...com>, Vakul Garg
<vakul.garg@....com>, Boris Pismenny <borisp@...dia.com>, John Fastabend
<john.fastabend@...il.com>
Subject: Re: [PATCH net 1/5] net: tls: handle -EBUSY on async
encrypt/decrypt requests
On Wed, 6 Sep 2023 19:08:31 +0200 Sabrina Dubroca wrote:
> --- a/net/tls/tls_sw.c
> +++ b/net/tls/tls_sw.c
> @@ -196,6 +196,9 @@ static void tls_decrypt_done(void *data, int err)
> struct sock *sk;
> int aead_size;
>
> + if (err == -EINPROGRESS)
> + return;
Maybe a comment here clarifying that caller got -EBUSY and the callback
will fire again without an error? The flow is slightly counter-
-intuitive.
> @@ -443,6 +446,9 @@ static void tls_encrypt_done(void *data, int err)
> struct sock *sk;
> int pending;
>
> + if (err == -EINPROGRESS)
> + return;
Same here?
Reviewed-by: Jakub Kicinski <kuba@...nel.org>
Powered by blists - more mailing lists