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
Showing
- include/net/sock.h 7 additions, 1 deletioninclude/net/sock.h
- include/net/tls.h 1 addition, 1 deletioninclude/net/tls.h
- net/ipv4/tcp.c 1 addition, 4 deletionsnet/ipv4/tcp.c
- net/ipv4/tcp_bpf.c 2 additions, 2 deletionsnet/ipv4/tcp_bpf.c
- net/tls/tls_main.c 2 additions, 2 deletionsnet/tls/tls_main.c
- net/tls/tls_sw.c 1 addition, 1 deletionnet/tls/tls_sw.c
Loading
Please register or sign in to comment