]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5fa9678a694947579e3205488954f0d43a851177
tree1368aa89b1729a189d197af3e8892ac936731aef
parentdb8817fc89dfb524e7bae571958fd9b4168803fb
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