diff options
author | AKASHI Takahiro <[email protected]> | 2023-03-07 15:45:31 +0900 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-03-16 09:06:56 -0700 |
commit | 2b4cc3d3f4d8ec42961e98568a0afeee96a943ab (patch) | |
tree | c7fe5f14df39f48f469c86816457cb19a1d9ea71 /tools/perf/scripts/python/syscall-counts.py | |
parent | 02c83791ef969c6a8a150b4927193d0d0e50fb23 (diff) |
igc: fix the validation logic for taprio's gate list
The check introduced in the commit a5fd39464a40 ("igc: Lift TAPRIO schedule
restriction") can detect a false positive error in some corner case.
For instance,
tc qdisc replace ... taprio num_tc 4
...
sched-entry S 0x01 100000 # slot#1
sched-entry S 0x03 100000 # slot#2
sched-entry S 0x04 100000 # slot#3
sched-entry S 0x08 200000 # slot#4
flags 0x02 # hardware offload
Here the queue#0 (the first queue) is on at the slot#1 and #2,
and off at the slot#3 and #4. Under the current logic, when the slot#4
is examined, validate_schedule() returns *false* since the enablement
count for the queue#0 is two and it is already off at the previous slot
(i.e. #3). But this definition is truely correct.
Let's fix the logic to enforce a strict validation for consecutively-opened
slots.
Fixes: a5fd39464a40 ("igc: Lift TAPRIO schedule restriction")
Signed-off-by: AKASHI Takahiro <[email protected]>
Reviewed-by: Kurt Kanzenbach <[email protected]>
Acked-by: Vinicius Costa Gomes <[email protected]>
Tested-by: Naama Meir <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions