pull-request: bpf-next 2025-05-02
Subsystems (3)
Martin KaFai Lau
reviewerHi David, hi Jakub, hi Paolo, hi Eric,
The following pull-request contains BPF updates for your *net-next* tree.
We've added 14 non-merge commits during the last 10 day(s) which contain a total of 13 files changed, 740 insertions(+), 121 deletions(-).
The main changes are:
1) Avoid skipping or repeating a sk when using a UDP bpf_iter, from Jordan Rife.
2) Fixed a crash when a bpf qdisc is set in
the net.core.default_qdisc, from Amery Hung.
3) A few other fixes in the bpf qdisc, from Amery Hung.
- Always call qdisc_watchdog_init() in the .init prologue such that the .reset/.destroy epilogue can always call qdisc_watchdog_cancel() without issue.
- bpf_qdisc_init_prologue() was incorrectly returning an error when the bpf qdisc is set as the default_qdisc and the mq is creating the default_qdisc. It is now fixed.
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:
Kuniyuki Iwashima
----------------------------------------------------------------
The following changes since commit 8ff6175139967cd17b2a62bca4b2de2559942b7e:
bnxt_en: hide CONFIG_DETECT_HUNG_TASK specific code (2025-04-23 14:46:00 -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 30190f82a1a9eb555703879cfe835627cff7a0e2:
Merge branch 'fix-bpf-qdisc-bugs-and-clean-up' (2025-05-02 15:51:17 -0700)
----------------------------------------------------------------
bpf-next-for-netdev
----------------------------------------------------------------
Amery Hung (6):
bpf: net_sched: Fix using bpf qdisc as default qdisc
bpf: net_sched: Fix bpf qdisc init prologue when set as default qdisc selftests/bpf: Test setting and creating bpf qdisc as default qdisc
bpf: net_sched: Make some Qdisc_ops ops mandatory selftests/bpf: Test attaching a bpf qdisc with incomplete operators selftests/bpf: Cleanup bpf qdisc selftests
Feng Yang (1):
selftests/bpf: Fix compilation errors
Jordan Rife (7):
bpf: udp: Make mem flags configurable through bpf_iter_udp_realloc_batch
bpf: udp: Make sure iter->batch always contains a full bucket snapshot
bpf: udp: Get rid of st_bucket_done
bpf: udp: Use bpf_udp_iter_batch_item for bpf_udp_iter_state batch items
bpf: udp: Avoid socket skips and repeats during iteration selftests/bpf: Return socket cookies from sock_iter_batch progs selftests/bpf: Add tests for bucket resume logic in UDP socket iterators
Martin KaFai Lau (2):
Merge branch 'bpf-udp-exactly-once-socket-iteration' Merge branch 'fix-bpf-qdisc-bugs-and-clean-up'
include/linux/udp.h | 3 + net/ipv4/udp.c | 173 +++++--- net/sched/bpf_qdisc.c | 24 +- net/sched/sch_api.c | 4 +- net/sched/sch_generic.c | 4 +- tools/testing/selftests/bpf/prog_tests/bpf_qdisc.c | 119 ++++-- .../selftests/bpf/prog_tests/sock_iter_batch.c | 447 ++++++++++++++++++++- .../testing/selftests/bpf/progs/bpf_qdisc_common.h | 6 +- .../bpf/progs/bpf_qdisc_fail__incompl_ops.c | 41 ++ tools/testing/selftests/bpf/progs/bpf_qdisc_fifo.c | 9 + tools/testing/selftests/bpf/progs/bpf_qdisc_fq.c | 6 + .../testing/selftests/bpf/progs/bpf_tracing_net.h | 1 + .../testing/selftests/bpf/progs/sock_iter_batch.c | 24 +- 13 files changed, 740 insertions(+), 121 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/bpf_qdisc_fail__incompl_ops.c
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 Fri, 2 May 2025 18:07:55 -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 14 non-merge commits during the last 10 day(s) which contain a total of 13 files changed, 740 insertions(+), 121 deletions(-).
[...]
Here is the summary with links:
- pull-request: bpf-next 2025-05-02
https://git.kernel.org/netdev/net-next/c/b4cd2ee54ca4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html