From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0AA146B8 for ; Sat, 3 May 2025 01:08:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746234498; cv=none; b=Gl8cf8z+wHPYJ4nk3iOxYZ0cAFP2PDPkqqbaalNsuVVKfoksgN9kVsKhFPwAFKhpINU71cP8MhDNqZD09EVuqv6aCmUvBg0UgcvkIC+hNcaVzA4L4zdaSFIzqMg5RfaTK3EFaayTEtRYe1UsJ1AyB15ac340GrxjPNQ2+EVwcEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746234498; c=relaxed/simple; bh=RYvmcQbuRmZesR4aqJivdmCiCWHEL77UgiecWvrF2Ck=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D+TY0YaEtExqwgxyxd2s0pbYkEYAS0ICK296ioOmgFPr0YpXTNCMskAA4zkT7rBaViGLIBQ44fAy13F6Td4kRsnX7zl30mlyOLOaa0khUg4fJfL6q17hNFjsqnK7ZJn7NbNAEXpKfCV1xW7usBJ0Uy5LJJddGMWcpXayygU8PpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=GxWrbMEl; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="GxWrbMEl" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1746234484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CKuyWgX9z869Bb99WFsFBIpbYFJIpD1WLWI8Sa6BKwU=; b=GxWrbMElbUw+4i5QotdIolm14WqD9EBIjQwosDPo4WVXIGB6hYtR/gypgke3u+TLalYHXF KrOxHyMzoml+lFFpZFmC8+ntdI7H+Px1R5Ze0tJYruCxVPsrIf/NK1vL3WZyAp7J/JR2tk 8y/HYJ9Nm/7dnUP2jwx29garEyqSR4w= From: Martin KaFai Lau To: David Miller , Jakub Kicinski , Eric Dumazet , Paolo Abeni Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Martin KaFai Lau , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: pull-request: bpf-next 2025-05-02 Date: Fri, 2 May 2025 18:07:55 -0700 Message-ID: <20250503010755.4030524-1-martin.lau@linux.dev> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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(-). 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