]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: a dflt qdisc may be used with per cpu stats
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 7 Dec 2017 17:55:26 +0000 (09:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Dec 2017 18:32:25 +0000 (13:32 -0500)
commitf7bddafad2d021027aa34d0759aa3ac8c8d9b67a
treed417c8c5ee7b98f53afe0cd65d106b4af40cd5d2
parent48f4909247baebea297f7b0873dfaabce5757a6e
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>
include/net/sch_generic.h
net/sched/sch_generic.c