]> git.baikalelectronics.ru Git - kernel.git/commit
hfsc: reduce hfsc_sched to 14 cachelines
authorFlorian Westphal <fw@strlen.de>
Mon, 4 Jul 2016 14:22:20 +0000 (16:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2016 03:08:39 +0000 (23:08 -0400)
commitbdda3fb6d31950b11e1d3e5ebc734fa8bcab16a4
treef14f32051ed7e9266c1117425d4904b5097cbf15
parent3160abaa6d3ccf7d99a55aa904b2ee43e4670fd2
hfsc: reduce hfsc_sched to 14 cachelines

hfsc_sched is huge (size: 920, cachelines: 15), but we can get it to 14
cachelines by placing level after filter_cnt (covering 4 byte hole) and
reducing period/nactive/flags to u32 (period is just a counter,
incremented when class becomes active -- 2**32 is plenty for this
purpose, also, long is only 32bit wide on 32bit platforms anyway).

cl_vtperiod is exported to userspace via tc_hfsc_stats, but its period
member is already u32, so no precision is lost there either.

Cc: Michal Soltys <soltys@ziu.info>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_hfsc.c