]> git.hungrycats.org Git - linux/commit
tls: rx: use async as an in-out argument
authorJakub Kicinski <kuba@kernel.org>
Mon, 11 Apr 2022 19:19:15 +0000 (12:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:47 +0000 (14:38 +0000)
commit9ae48288fc8b1aef1ab3a0d998683292767ed057
treed84beb6024e92f9f6ebbe9f3eef81e974c9bc420
parentbdb7fb29236a52c21c6f2b76354c1699ce19050d
tls: rx: use async as an in-out argument

[ Upstream commit 3547a1f9d988d88ecff4fc365d2773037c849f49 ]

Propagating EINPROGRESS thru multiple layers of functions is
error prone. Use darg->async as an in/out argument, like we
use darg->zc today. On input it tells the code if async is
allowed, on output if it took place.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: f7fa16d49837 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_sw.c