Home
last modified time | relevance | path

Searched hist:"0 d3ca07f" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/sunrpc/
H A Dxprtsock.h0d3ca07f Wed Jun 07 08:58:22 CDT 2023 Chuck Lever <chuck.lever@oracle.com> SUNRPC: Ignore data_ready callbacks during TLS handshakes

The RPC header parser doesn't recognize TLS handshake traffic, so it
will close the connection prematurely with an error. To avoid that,
shunt the transport's data_ready callback when there is a TLS
handshake in progress.

The XPRT_SOCK_IGNORE_RECV flag will be toggled by code added in a
subsequent patch.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
/openbmc/linux/net/sunrpc/
H A Dxprtsock.c0d3ca07f Wed Jun 07 08:58:22 CDT 2023 Chuck Lever <chuck.lever@oracle.com> SUNRPC: Ignore data_ready callbacks during TLS handshakes

The RPC header parser doesn't recognize TLS handshake traffic, so it
will close the connection prematurely with an error. To avoid that,
shunt the transport's data_ready callback when there is a TLS
handshake in progress.

The XPRT_SOCK_IGNORE_RECV flag will be toggled by code added in a
subsequent patch.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>