aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sch_generic.h
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2017-12-07 09:55:26 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-08 13:32:25 -0500
commitd59f5ffa59d80ff3a2f3b56a9acea4310974c6d1 (patch)
treed417c8c5ee7b98f53afe0cd65d106b4af40cd5d2 /include/net/sch_generic.h
parentnet: sched: provide per cpu qstat helpers (diff)
downloadlinux-dev-d59f5ffa59d80ff3a2f3b56a9acea4310974c6d1.tar.xz
linux-dev-d59f5ffa59d80ff3a2f3b56a9acea4310974c6d1.zip
net: sched: a dflt qdisc may be used with per cpu stats
Enable dflt qdisc support for per cpu stats before this patch a dflt qdisc was required to use the global statistics qstats and bstats. This adds a static flags field to qdisc_ops that is propagated into qdisc->flags in qdisc allocate call. This allows the allocation block to completely allocate the qdisc object so we don't have dangling allocations after qdisc init. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r--include/net/sch_generic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index eff31d824861..6fd9a4e70066 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -180,6 +180,7 @@ struct Qdisc_ops {
const struct Qdisc_class_ops *cl_ops;
char id[IFNAMSIZ];
int priv_size;
+ unsigned int static_flags;
int (*enqueue)(struct sk_buff *skb,
struct Qdisc *sch,