summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/xprtsock.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-06-07 09:58:22 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2023-06-19 12:19:16 -0400
commit0d3ca07ffda9291843bb0b4b39dea43535bb1f13 (patch)
tree993d12ed8114095cc58e3c23078a4ede7c48a96e /include/linux/sunrpc/xprtsock.h
parent120726526e5ee3dfac11bd417e266a7e411f3315 (diff)
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>
Diffstat (limited to 'include/linux/sunrpc/xprtsock.h')
-rw-r--r--include/linux/sunrpc/xprtsock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprtsock.h b/include/linux/sunrpc/xprtsock.h
index 38284f25eddf..daef030f4848 100644
--- a/include/linux/sunrpc/xprtsock.h
+++ b/include/linux/sunrpc/xprtsock.h
@@ -90,5 +90,6 @@ struct sock_xprt {
#define XPRT_SOCK_WAKE_DISCONNECT (7)
#define XPRT_SOCK_CONNECT_SENT (8)
#define XPRT_SOCK_NOSPACE (9)
+#define XPRT_SOCK_IGNORE_RECV (10)
#endif /* _LINUX_SUNRPC_XPRTSOCK_H */