skmsg: Extract __tcp_bpf_recvmsg() and tcp_bpf_wait_data()
authorCong Wang <cong.wang@bytedance.com>
Wed, 31 Mar 2021 02:32:33 +0000 (19:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Apr 2021 17:56:14 +0000 (10:56 -0700)
commit2bc793e3272a13e337416c057cb81c5396ad91d1
tree1a611b3ce3edf032e4f6a9430fa8c5cd719e1728
parentd7f571188ecf25c244789b883c878ec7c64b5b08
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
include/linux/skmsg.h
include/net/tcp.h
net/core/skmsg.c
net/ipv4/tcp_bpf.c
net/tls/tls_sw.c