summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJamal Hadi Salim <jhs@mojatatu.com>2026-11-03 06:50:32 -0500
committerJakub Kicinski <kuba@kernel.org>2026-11-10 10:15:11 -0800
commit367a50c3233e3f52fee481af025089594cb7851d (patch)
tree4a4d70664d651c47a75122b85b9d7dde4bea1136 /tools/perf/scripts/python
parent1ae84bdd736f8fab30180159996e1d193f8029ff (diff)
selftests: tc-testing: teql: cover each attach rejection on its own
Found by Sashiko (nipa) while reviewing the previous posting of this series: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/SER-NSBD.v2.r0.20261101171325-4%40mojatatu.com The issue: Case 124e attaches teql as a child qdisc and expects the attach to be refused. It requires nsPlugin, so its device sits in the test network namespace while the teql0 master is in init_net. Both the root-only check and the namespace check refuse the attach with -EOPNOTSUPP, and the case checks the exit code and an empty dump only, so it passes whichever check answers it. It no longer proves that a child attach is refused as such, and the case added in the previous posting covers the namespace check alone. The Fix: Run 124e in the initial namespace, creating its own device the way the other teql cases do, so that only the root-only check can refuse it. Attach a root qdisc from the test namespace in the second case, so that only the namespace check can refuse that one. Link: https://lore.kernel.org/netdev/179366641863.488856.17368571591466000274@kernel.org/ Link: https://lore.kernel.org/netdev/179366641986.488856.2193313144081673076@kernel.org/ Reviewed-by: Victor Nogueira <victor@mojatatu.com> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/SER-NSBD.v3.r0.20261103064310-4@mojatatu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions