diff options
author | Cong Wang <cong.wang@bytedance.com> | 2021-10-08 13:33:03 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-10-26 12:29:33 -0700 |
commit | 7b50ecfcc6cdfe87488576bc3ed443dc8d083b90 (patch) | |
tree | 0851392dcfe34a0f7812e4e1a39c8a972d89fa80 /net/tls/tls_sw.c | |
parent | cd9733f5d75c94a32544d6ce5be47e14194cf137 (diff) | |
download | linux-7b50ecfcc6cdfe87488576bc3ed443dc8d083b90.tar.bz2 |
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 'net/tls/tls_sw.c')
-rw-r--r-- | net/tls/tls_sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index 4feb95e34b64..d5d09bd817b7 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -2026,7 +2026,7 @@ splice_read_end: return copied ? : err; } -bool tls_sw_stream_read(const struct sock *sk) +bool tls_sw_sock_is_readable(struct sock *sk) { struct tls_context *tls_ctx = tls_get_ctx(sk); struct tls_sw_context_rx *ctx = tls_sw_ctx_rx(tls_ctx); |