skmsg: Extract and reuse sk_msg_is_readable()
authorCong Wang <cong.wang@bytedance.com>
Fri, 8 Oct 2021 20:33:04 +0000 (13:33 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Oct 2021 19:29:33 +0000 (12:29 -0700)
commitfb4e0a5e73d4bb5ab69b7905abd2ec3b580e9b59
treef870a8ccb700b39fd1d5e50d306031b9b38eb069
parent7b50ecfcc6cdfe87488576bc3ed443dc8d083b90
skmsg: Extract and reuse sk_msg_is_readable()

tcp_bpf_sock_is_readable() is pretty much generic,
we can extract it and reuse it for non-TCP sockets.

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-3-xiyou.wangcong@gmail.com
include/linux/skmsg.h
net/core/skmsg.c
net/ipv4/tcp_bpf.c