SUNRPC: Capture CMSG metadata on client-side receive
authorChuck Lever <chuck.lever@oracle.com>
Wed, 7 Jun 2023 13:58:49 +0000 (09:58 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 16:26:54 +0000 (12:26 -0400)
commitdea034b963c8901bdcc3d3880c04f0d75c95112f
tree22021408afc1a4852a7e89df1c2148d485fedd21
parent0d3ca07ffda9291843bb0b4b39dea43535bb1f13
SUNRPC: Capture CMSG metadata on client-side receive

kTLS sockets use CMSG to report decryption errors and the need
for session re-keying.

For RPC-with-TLS, an "application data" message contains a ULP
payload, and that is passed along to the RPC client. An "alert"
message triggers connection reset. Everything else is discarded.

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>
net/sunrpc/xprtsock.c