Skip to contentSkip to conversation

pull-request: bpf-next 2025-10-16

DISCUSSION Applied Martin KaFai Lau 2 participants 2 messages Oct 16, 2025 – Oct 18, 2025

Subsystems (3)
lore
Share & tools
lore

Martin KaFai Lau

author reviewer
#0 lore raw

Hi David, hi Jakub, hi Paolo, hi Eric,

The following pull-request contains BPF updates for your *net-next* tree.

We've added 6 non-merge commits during the last 1 day(s) which contain a total of 18 files changed, 577 insertions(+), 38 deletions(-).

The main changes are:

1) Bypass the global per-protocol memory accounting either by setting a netns sysctl or using bpf_setsockopt in a bpf program, from Kuniyuki Iwashima.

Please consider pulling these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tags/for-netdev

Thanks a lot!

Also thanks to reporters, reviewers and testers of commits in this pull-request:

Eric Dumazet, Roman Gushchin, Shakeel Butt

----------------------------------------------------------------

The following changes since commit 55db64ddd6a12c5157a61419a11a18fc727e8286:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2025-10-16 11:06:28 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tags/for-netdev

for you to fetch changes up to 03de843bd0806184505f1e8099ff4ca9a8665dbb:

Merge branch 'bpf-allow-opt-out-from-sk-sk_prot-memory_allocated' (2025-10-16 12:15:10 -0700)

----------------------------------------------------------------
bpf-next-for-netdev

----------------------------------------------------------------
Kuniyuki Iwashima (6):
tcp: Save lock_sock() for memcg in inet_csk_accept().
net: Allow opt-out from global protocol memory accounting.
net: Introduce net.core.bypass_prot_mem sysctl.
bpf: Support bpf_setsockopt() for BPF_CGROUP_INET_SOCK_CREATE.
bpf: Introduce SK_BPF_BYPASS_PROT_MEM. selftests/bpf: Add test for sk->sk_bypass_prot_mem.

Martin KaFai Lau (1):
Merge branch 'bpf-allow-opt-out-from-sk-sk_prot-memory_allocated'

 Documentation/admin-guide/sysctl/net.rst           |   8 +
 include/net/netns/core.h                           |   1 +
 include/net/proto_memory.h                         |   3 +
 include/net/sock.h                                 |   3 +
 include/net/tcp.h                                  |   3 +
 include/uapi/linux/bpf.h                           |   2 +
 net/core/filter.c                                  |  85 ++++++
 net/core/sock.c                                    |  37 ++-
 net/core/sysctl_net_core.c                         |   9 +
 net/ipv4/af_inet.c                                 |  22 ++
 net/ipv4/inet_connection_sock.c                    |  25 --
 net/ipv4/tcp.c                                     |   3 +-
 net/ipv4/tcp_output.c                              |   7 +-
 net/mptcp/protocol.c                               |   7 +-
 net/tls/tls_device.c                               |   3 +-
 tools/include/uapi/linux/bpf.h                     |   1 +
 .../selftests/bpf/prog_tests/sk_bypass_prot_mem.c  | 292 +++++++++++++++++++++
 .../selftests/bpf/progs/sk_bypass_prot_mem.c       | 104 ++++++++
 18 files changed, 577 insertions(+), 38 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
 create mode 100644 tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
#1 lore raw
This pull request was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This pull request was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 16 Oct 2025 13:45:39 -0700 you wrote:

Hi David, hi Jakub, hi Paolo, hi Eric,

The following pull-request contains BPF updates for your *net-next* tree.

We've added 6 non-merge commits during the last 1 day(s) which contain a total of 18 files changed, 577 insertions(+), 38 deletions(-).

[...]

Here is the summary with links:
- pull-request: bpf-next 2025-10-16

    https://git.kernel.org/netdev/net-next/c/e90576829ce4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html