]> git.baikalelectronics.ru Git - kernel.git/commit
fq_codel: should use qdisc backlog as threshold
authorEric Dumazet <edumazet@google.com>
Wed, 16 May 2012 04:39:09 +0000 (04:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2012 19:30:26 +0000 (15:30 -0400)
commit7ea5512141630e3be8029436297f0048cdda4090
treeb9f056cdea6922d5fc3ed035764660bb6fb152b3
parentea6e01f2a143c3170a322e821c16a2ada24fb8d7
fq_codel: should use qdisc backlog as threshold

codel_should_drop() logic allows a packet being not dropped if queue
size is under max packet size.

In fq_codel, we have two possible backlogs : The qdisc global one, and
the flow local one.

The meaningful one for codel_should_drop() should be the global backlog,
not the per flow one, so that thin flows can have a non zero drop/mark
probability.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Dave Taht <dave.taht@bufferbloat.net>
Cc: Kathleen Nichols <nichols@pollere.com>
Cc: Van Jacobson <van@pollere.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/codel.h
net/sched/sch_codel.c
net/sched/sch_fq_codel.c