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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 10:45:39 +0000 (11:45 +0100)
commit3547a1f9d988d88ecff4fc365d2773037c849f49
treec57c8f90e390d370dbc5998a82782787c5431a1b
parentf314bfee81b1bf8e01168177b2f65f24eb8da63a
tls: rx: use async as an in-out argument

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>
net/tls/tls_sw.c