This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Commit 2b4cc3d
igc: fix the validation logic for taprio's gate list
The check introduced in the commit a5fd394 ("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: a5fd394 ("igc: Lift TAPRIO schedule restriction")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 02c8379 commit 2b4cc3d
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6010 | 6010 | | |
6011 | 6011 | | |
6012 | 6012 | | |
6013 | | - | |
6014 | | - | |
| 6013 | + | |
| 6014 | + | |
6015 | 6015 | | |
6016 | 6016 | | |
6017 | | - | |
6018 | | - | |
6019 | | - | |
6020 | | - | |
6021 | | - | |
6022 | | - | |
6023 | | - | |
6024 | | - | |
| 6017 | + | |
| 6018 | + | |
| 6019 | + | |
| 6020 | + | |
| 6021 | + | |
| 6022 | + | |
| 6023 | + | |
| 6024 | + | |
6025 | 6025 | | |
6026 | 6026 | | |
6027 | 6027 | | |
| |||
0 commit comments