diff options
author | Cong Wang <cong.wang@bytedance.com> | 2021-10-08 22:33:03 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-10-26 21:29:33 +0200 |
commit | 7b50ecfcc6cdfe87488576bc3ed443dc8d083b90 (patch) | |
tree | 0851392dcfe34a0f7812e4e1a39c8a972d89fa80 /include/net/tls.h | |
parent | tcp_bpf: Fix one concurrency problem in the tcp_bpf_send_verdict function (diff) | |
download | linux-7b50ecfcc6cdfe87488576bc3ed443dc8d083b90.tar.xz linux-7b50ecfcc6cdfe87488576bc3ed443dc8d083b90.zip |
net: Rename ->stream_memory_read to ->sock_is_readable
The proto ops ->stream_memory_read() is currently only used
by TCP to check whether psock queue is empty or not. We need
to rename it before reusing it for non-TCP protocols, and
adjust the exsiting users accordingly.
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211008203306.37525-2-xiyou.wangcong@gmail.com
Diffstat (limited to 'include/net/tls.h')
-rw-r--r-- | include/net/tls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index be4b3e1cac46..01d2e3744393 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -375,7 +375,7 @@ void tls_sw_release_resources_rx(struct sock *sk); void tls_sw_free_ctx_rx(struct tls_context *tls_ctx); int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, int flags, int *addr_len); -bool tls_sw_stream_read(const struct sock *sk); +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); |