diff options
author | John Fastabend <john.fastabend@gmail.com> | 2017-12-07 20:55:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-08 21:32:25 +0300 |
commit | d59f5ffa59d80ff3a2f3b56a9acea4310974c6d1 (patch) | |
tree | d417c8c5ee7b98f53afe0cd65d106b4af40cd5d2 /include/net/sch_generic.h | |
parent | 40bd036219dca86938fd5bd84b3fc19ffa812596 (diff) | |
download | linux-d59f5ffa59d80ff3a2f3b56a9acea4310974c6d1.tar.xz |
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.h | 1 |
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, |