Commit a1c1b176 authored by Miguel Freitas's avatar Miguel Freitas Committed by Hideaki Yoshifuji

[NET_SCHED]: Fix slot leakage in SFQ scheduler.

parent 6f9a6c30
......@@ -341,6 +341,7 @@ sfq_dequeue(struct Qdisc* sch)
/* Is the slot empty? */
if (q->qs[a].qlen == 0) {
q->ht[q->hash[a]] = SFQ_DEPTH;
a = q->next[a];
if (a == old_a) {
q->tail = SFQ_DEPTH;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment