Skip to content
Commit 35560b7f authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarJakub Kicinski <kuba@kernel.org>
parent 58790314
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment