Thread (6 messages) flat view 6 messages, 3 authors, 2021-01-21

Re: [PATCH bpf-next v9 0/3] bpf: misc performance improvements for cgroup hooks

From: Alexei Starovoitov <hidden>
Date: 2021-01-21 00:01:34
Also in: bpf

On Fri, Jan 15, 2021 at 8:35 AM Stanislav Fomichev [off-list ref] wrote:
First patch adds custom getsockopt for TCP_ZEROCOPY_RECEIVE
to remove kmalloc and lock_sock overhead from the dat path.

Second patch removes kzalloc/kfree from getsockopt for the common cases.

Third patch switches cgroup_bpf_enabled to be per-attach to
to add only overhead for the cgroup attach types used on the system.

No visible user-side changes.

v9:
- include linux/tcp.h instead of netinet/tcp.h in sockopt_sk.c
- note that v9 depends on the commit 4be34f3d0731 ("bpf: Don't leak
  memory in bpf getsockopt when optlen == 0") from bpf tree
I've rebased bpf-next to include that fix from bpf and applied this set.
Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help