skmsg: Extract __tcp_bpf_recvmsg() and tcp_bpf_wait_data()
Although these two functions are only used by TCP, they are not specific to TCP at all, both operate on skmsg and ingress_msg, so fit in net/core/skmsg.c very well. And we will need them for non-TCP, so rename and move them to skmsg.c and export them to modules. Signed-off-by:Cong Wang <cong.wang@bytedance.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210331023237.41094-13-xiyou.wangcong@gmail.com
Showing
- include/linux/skmsg.h 4 additions, 0 deletionsinclude/linux/skmsg.h
- include/net/tcp.h 0 additions, 2 deletionsinclude/net/tcp.h
- net/core/skmsg.c 98 additions, 0 deletionsnet/core/skmsg.c
- net/ipv4/tcp_bpf.c 2 additions, 98 deletionsnet/ipv4/tcp_bpf.c
- net/tls/tls_sw.c 2 additions, 2 deletionsnet/tls/tls_sw.c
Loading
Please register or sign in to comment