diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-10-19 17:36:33 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-19 17:36:34 -0700 |
| commit | c0b628de2243f0d5d1c0e79e8acf9411f6b6f835 (patch) | |
| tree | 0063316fd672b5d3a4c9ea5891a4d35480d3b0aa /tools/perf/scripts/python | |
| parent | 78731b46967e3e7102b5cd5062bef185f3404b5c (diff) | |
| parent | 866363c3cc40147d0501a1a6dae485e13852d150 (diff) | |
Merge branch 'net-sched-cls_bpf-accept-dev-bound-programs-on-shared-blocks'
Jamal Hadi Salim says:
====================
net/sched: cls_bpf: accept dev-bound programs on shared blocks
This series fixes the regression where a device-bound SCHED_CLS program
attached through a shared block is rejected even when it is bound to a
netdev that owns the block, and closes the bind/reoffload replay hole a
later-joining device would otherwise exploit.
Patch 1 gives netdevsim's cls_bpf TC block callback the device-match
check nfp already has; the callback is the authoritative per-device
acceptance boundary and the defect there predates the cls_bpf core
change.
Patch 2 makes the core attach-time check derive the target device from
the shared block's member set (block->q is NULL for a shared block) and
require every member to match, mirroring the broadcast fan-out of the
offload path. Patch 1 is a prerequisite of patch 2 on v7.2+ trees:
commit 120977e2c096 ("net/sched: cls_bpf: reject dev-bound programs
bound to a different device") made the replay path unreachable through
shared blocks as a side effect, and patch 2 re-exposes it, so a stable
tree must take both together.
Patch 3 adds shared-block and late-join coverage to bpf_offload.py; it
uses the existing sample_ret0.bpf.o with an explicit `type classifier`
override instead of adding a new sample object.
====================
Link: https://patch.msgid.link/QDISC-PYC7.v2.20261010165947@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
