mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
selftests: tc-testing: update ETS test 41f5 for clamped quanta
Commit "net/sched: ets: clamp quantum in parse and fallback paths" moved the quantum floor into ets_quantum_parse(), so every explicitly configured quantum is now clamped to [256, 1 << 20], not just the psched_mtu() fallback. Test 41f5 passes "quanta 4294967294 1 1" and matches the values back verbatim, so all three bands now differ from what it expects: before: bands 3 quanta 4294967294 1 1 after: bands 3 quanta 1048576 256 256 Update the match pattern accordingly. Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Link: https://patch.msgid.link/QDISC-0CFC.v3.20260901204856@mojatatu.com.10 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1c38487f46
commit
8f0229bef3
|
|
@ -987,7 +987,7 @@
|
|||
},
|
||||
{
|
||||
"id": "41f5",
|
||||
"name": "ETS offload where the sum of quanta wraps u32",
|
||||
"name": "ETS offload with out-of-range quanta clamped",
|
||||
"category": [
|
||||
"qdisc",
|
||||
"ets"
|
||||
|
|
@ -1002,7 +1002,7 @@
|
|||
"cmdUnderTest": "$TC qdisc add dev $ETH root ets quanta 4294967294 1 1",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC qdisc show dev $ETH",
|
||||
"matchPattern": "qdisc ets .*bands 3 quanta 4294967294 1 1",
|
||||
"matchPattern": "qdisc ets .*bands 3 quanta 1048576 256 256",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"echo \"1\" > /sys/bus/netdevsim/del_device"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user