tls: rx: make tls_wait_data() return an recvmsg retcode
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Jul 2022 01:03:14 +0000 (18:03 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jul 2022 01:38:45 +0000 (18:38 -0700)
commit35560b7f06b8497e11880c53e845744f41de4820
tree1368aa89b1729a189d197af3e8892ac936731aef
parent5879031423089b2e19b769f30fc618af742264c3
tls: rx: make tls_wait_data() return an recvmsg retcode

tls_wait_data() sets the return code as an output parameter
and always returns ctx->recv_pkt on success.

Return the error code directly and let the caller read the skb
from the context. Use positive return code to indicate ctx->recv_pkt
is ready.

While touching the definition of the function rename it.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c