Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361047
b: refs/heads/master
c: a0143ef
h: refs/heads/master
i:
  361045: c232a87
  361043: 629cb7a
  361039: 277a5a2
v: v3
  • Loading branch information
Paolo Valente authored and David S. Miller committed Mar 6, 2013
1 parent 75718a2 commit 7264b77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f3b89a1fe0823fceb544856c9eeb036a75ff091
refs/heads/master: a0143efa96671dc51dab9bba776a66f9bfa1757f
10 changes: 9 additions & 1 deletion trunk/net/sched/sch_qfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,15 @@ static struct sk_buff *qfq_dequeue(struct Qdisc *sch)
qdisc_bstats_update(sch, skb);

agg_dequeue(in_serv_agg, cl, len);
in_serv_agg->budget -= len;
/* If lmax is lowered, through qfq_change_class, for a class
* owning pending packets with larger size than the new value
* of lmax, then the following condition may hold.
*/
if (unlikely(in_serv_agg->budget < len))
in_serv_agg->budget = 0;
else
in_serv_agg->budget -= len;

q->V += (u64)len * IWSUM;
pr_debug("qfq dequeue: len %u F %lld now %lld\n",
len, (unsigned long long) in_serv_agg->F,
Expand Down

0 comments on commit 7264b77

Please sign in to comment.