fq.h: Port memory limit mechanism from fq_codel
authorToke Høiland-Jørgensen <toke@toke.dk>
Fri, 23 Sep 2016 19:59:09 +0000 (21:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 30 Sep 2016 11:29:21 +0000 (13:29 +0200)
commit097b065b5cbfa3fd57b47f3c86d6baa96c30bf31
tree8d048e1596a0bc2b438cd5e823ab2c5233c323dc
parent92bc43bce2849c814cece258694f167d28524fbd
fq.h: Port memory limit mechanism from fq_codel

The reusable fairness queueing implementation (fq.h) lacks the memory
usage limit that the fq_codel qdisc has. This means that small
devices (e.g. WiFi routers) can run out of memory when flooded with a
large number of packets. This ports the memory limit feature from
fq_codel to fq.h.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/fq.h
include/net/fq_impl.h