aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls.h
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2023-07-26 19:15:56 +0000
committerJakub Kicinski <[email protected]>2023-07-28 02:49:35 +0000
commit662fbcec32f4af6bdcf5b4006b792ebe9543d945 (patch)
tree8a31f0a1e2e25b2c8f107434b39cd05ce9b8e0f8 /net/tls/tls.h
parentnet/tls: split tls_rx_reader_lock (diff)
downloadkernel-662fbcec32f4af6bdcf5b4006b792ebe9543d945.tar.gz
kernel-662fbcec32f4af6bdcf5b4006b792ebe9543d945.zip
net/tls: implement ->read_sock()
Implement ->read_sock() function for use with nvme-tcp. Signed-off-by: Hannes Reinecke <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Cc: Boris Pismenny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/tls/tls.h')
-rw-r--r--net/tls/tls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tls/tls.h b/net/tls/tls.h
index 86cef1c68e03..7e4d45537deb 100644
--- a/net/tls/tls.h
+++ b/net/tls/tls.h
@@ -110,6 +110,8 @@ bool tls_sw_sock_is_readable(struct sock *sk);
ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
struct pipe_inode_info *pipe,
size_t len, unsigned int flags);
+int tls_sw_read_sock(struct sock *sk, read_descriptor_t *desc,
+ sk_read_actor_t read_actor);
int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
void tls_device_splice_eof(struct socket *sock);