projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c3827
)
net: fq_codel: Fix off-by-one error
author
Vijay Subramanian
<
[email protected]
>
Thu, 28 Mar 2013 13:52:00 +0000
(13:52 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 29 Mar 2013 19:32:23 +0000
(15:32 -0400)
Currently, we hold a max of sch->limit -1 number of packets instead of
sch->limit packets. Fix this off-by-one error.
Signed-off-by: Vijay Subramanian <
[email protected]
>
Acked-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/sch_fq_codel.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_fq_codel.c
b/net/sched/sch_fq_codel.c
index 4e606fcb2534929a2470e807816ac1089d81b7b2..55786283a3dfe613ee6deac5756b4726a66925ee 100644
(file)
--- a/
net/sched/sch_fq_codel.c
+++ b/
net/sched/sch_fq_codel.c
@@
-195,7
+195,7
@@
static int fq_codel_enqueue(struct sk_buff *skb, struct Qdisc *sch)
flow->deficit = q->quantum;
flow->dropped = 0;
}
- if (++sch->q.qlen < sch->limit)
+ if (++sch->q.qlen <
=
sch->limit)
return NET_XMIT_SUCCESS;
q->drop_overlimit++;