From: Cong Wang <xiyou.wangcong@gmail.com>
To: netdev@vger.kernel.org
Cc: bpf@vger.kernel.org, Cong Wang <cong.wang@bytedance.com>
Subject: [Patch bpf v2 0/4] sock_map: fix ->poll() and update selftests
Date: Mon, 27 Sep 2021 17:22:08 -0700 [thread overview]
Message-ID: <20210928002212.14498-1-xiyou.wangcong@gmail.com> (raw)
From: Cong Wang <cong.wang@bytedance.com>
This patchset fixes ->poll() on sockmap sockets and update
selftests accordingly with select(). Please check each patch
for more details.
---
v2: rename and reuse ->stream_memory_read()
fix a compile error in sk_psock_get_checked()
Cong Wang (3):
skmsg: introduce sk_psock_get_checked()
net: rename ->stream_memory_read to ->sock_is_readable
net: implement ->sock_is_readable for UDP and AF_UNIX
Yucong Sun (1):
selftests/bpf: use recv_timeout() instead of retries
include/linux/skmsg.h | 21 ++++++
include/net/sock.h | 8 +-
include/net/tls.h | 2 +-
net/core/skmsg.c | 14 ++++
net/core/sock_map.c | 22 +-----
net/ipv4/tcp.c | 5 +-
net/ipv4/tcp_bpf.c | 4 +-
net/ipv4/udp.c | 2 +
net/ipv4/udp_bpf.c | 1 +
net/tls/tls_main.c | 4 +-
net/tls/tls_sw.c | 2 +-
net/unix/af_unix.c | 4 +
net/unix/unix_bpf.c | 2 +
.../selftests/bpf/prog_tests/sockmap_listen.c | 75 +++++--------------
14 files changed, 79 insertions(+), 87 deletions(-)
--
2.30.2
next reply other threads:[~2021-09-28 0:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 0:22 Cong Wang [this message]
2021-09-28 0:22 ` [Patch bpf v2 1/4] skmsg: introduce sk_psock_get_checked() Cong Wang
2021-09-28 0:22 ` [Patch bpf v2 2/4] net: rename ->stream_memory_read to ->sock_is_readable Cong Wang
2021-09-28 0:22 ` [Patch bpf v2 3/4] net: implement ->sock_is_readable for UDP and AF_UNIX Cong Wang
2021-09-30 21:44 ` John Fastabend
2021-10-02 0:00 ` Cong Wang
2021-09-28 0:22 ` [Patch bpf v2 4/4] selftests/bpf: use recv_timeout() instead of retries Cong Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210928002212.14498-1-xiyou.wangcong@gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=cong.wang@bytedance.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).