Re: [PATCH net-next] fq_codel: fix memory limitation drift

2016-05-16 Thread David Miller
From: Eric Dumazet Date: Sun, 15 May 2016 18:16:38 -0700 > From: Eric Dumazet > > memory_usage must be decreased in dequeue_func(), not in > fq_codel_dequeue(), otherwise packets dropped by Codel algo > are missing this decrease. > > Also we need to clear memory_usage in fq_codel_reset() > >

[PATCH net-next] fq_codel: fix memory limitation drift

2016-05-15 Thread Eric Dumazet
From: Eric Dumazet memory_usage must be decreased in dequeue_func(), not in fq_codel_dequeue(), otherwise packets dropped by Codel algo are missing this decrease. Also we need to clear memory_usage in fq_codel_reset() Fixes: 95b58430abe7 ("fq_codel: add memory limitation per queue") Signed-off-