]> git.baikalelectronics.ru Git - kernel.git/commit
sched: place state, next_sched and gso_skb in same cacheline again
authorFlorian Westphal <fw@strlen.de>
Wed, 8 Jun 2016 22:27:43 +0000 (00:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 06:58:52 +0000 (23:58 -0700)
commitd9ce11f5bbc69734c4413646f9611ed80b341227
treed22984bcaf0e223a471377f67dc83827f0cae7a6
parent70ed39e98ace920c11997ec3e2a25af79daa61eb
sched: place state, next_sched and gso_skb in same cacheline again

Earlier commits removed two members from struct Qdisc which places
next_sched/gso_skb into a different cacheline than ->state.

This restores the struct layout to what it was before the removal.
Move the two members, then add an annotation so they all reside in the
same cacheline.

This adds a 16 byte hole after cpu_qstats.

The hole could be closed but as it doesn't decrease total struct size just
do it this way.

Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h