]> 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)
commitab667ebfc57f0d9b9f62db1da5b53e6fae101324
tree1368aa89b1729a189d197af3e8892ac936731aef
parent3eeea972b5ce289dae4310cbf0d7f3b346efba08
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