aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-07-04 16:22:20 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-08 23:08:39 -0400
commitbba7eb5d9b4ebccacd30331121ee29764212a29d (patch)
treef14f32051ed7e9266c1117425d4904b5097cbf15 /drivers/net/hyperv/netvsc.c
parentMerge tag 'mac80211-next-for-davem-2016-07-06' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next (diff)
downloadlinux-dev-bba7eb5d9b4ebccacd30331121ee29764212a29d.tar.xz
linux-dev-bba7eb5d9b4ebccacd30331121ee29764212a29d.zip
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>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
0 files changed, 0 insertions, 0 deletions