aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/fq.h
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@toke.dk>2016-09-23 21:59:09 +0200
committerJohannes Berg <johannes.berg@intel.com>2016-09-30 13:29:21 +0200
commit097b065b5cbfa3fd57b47f3c86d6baa96c30bf31 (patch)
tree8d048e1596a0bc2b438cd5e823ab2c5233c323dc /include/net/fq.h
parentmac80211: Add API to report NAN function match (diff)
downloadlinux-dev-097b065b5cbfa3fd57b47f3c86d6baa96c30bf31.tar.xz
linux-dev-097b065b5cbfa3fd57b47f3c86d6baa96c30bf31.zip
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>
Diffstat (limited to 'include/net/fq.h')
-rw-r--r--include/net/fq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/fq.h b/include/net/fq.h
index 268b49049c37..6d8521a30c5c 100644
--- a/include/net/fq.h
+++ b/include/net/fq.h
@@ -72,9 +72,12 @@ struct fq {
u32 flows_cnt;
u32 perturbation;
u32 limit;
+ u32 memory_limit;
+ u32 memory_usage;
u32 quantum;
u32 backlog;
u32 overlimit;
+ u32 overmemory;
u32 collisions;
};