[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220104013153.97906-1-kuniyu@amazon.co.jp>
Date: Tue, 4 Jan 2022 10:31:47 +0900
From: Kuniyuki Iwashima <kuniyu@...zon.co.jp>
To: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>
CC: Martin KaFai Lau <kafai@...com>,
Benjamin Herrenschmidt <benh@...zon.com>,
Kuniyuki Iwashima <kuniyu@...zon.co.jp>,
Kuniyuki Iwashima <kuni1840@...il.com>, <bpf@...r.kernel.org>,
<netdev@...r.kernel.org>
Subject: [PATCH bpf-next 0/6] bpf: Batching iter for AF_UNIX sockets.
Happy new year!
Last year the commit afd20b9290e1 ("af_unix: Replace the big lock with
small locks.") landed on bpf-next. Now we can use a batching algorithm
for bpf unix iter as bpf tcp iter.
Note that the first patch only can be a candidate for the bpf tree.
Kuniyuki Iwashima (6):
bpf: Fix SO_RCVBUF/SO_SNDBUF handling in _bpf_setsockopt().
bpf: Add SO_RCVBUF/SO_SNDBUF in _bpf_getsockopt().
bpf: af_unix: Use batching algorithm in bpf unix iter.
bpf: Support bpf_(get|set)sockopt() in bpf unix iter.
selftest/bpf: Test batching and bpf_(get|set)sockopt in bpf unix iter.
selftest/bpf: Fix a stale comment.
net/core/filter.c | 8 +
net/unix/af_unix.c | 197 +++++++++++++++++-
.../bpf/prog_tests/bpf_iter_setsockopt_unix.c | 100 +++++++++
.../bpf/progs/bpf_iter_setsockopt_unix.c | 60 ++++++
.../selftests/bpf/progs/bpf_iter_unix.c | 2 +-
.../selftests/bpf/progs/bpf_tracing_net.h | 2 +
6 files changed, 361 insertions(+), 8 deletions(-)
create mode 100644 tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt_unix.c
create mode 100644 tools/testing/selftests/bpf/progs/bpf_iter_setsockopt_unix.c
--
2.30.2
Powered by blists - more mailing lists