]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_queue: place volatile data in own cacheline
authorFlorian Westphal <fw@strlen.de>
Sun, 30 Oct 2016 23:35:07 +0000 (00:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Nov 2016 19:50:33 +0000 (20:50 +0100)
commit485bf5be8a57a4f635109af4fc556593fe8e7a8e
treec79281c68edba4dea269def458998eb0456b7982
parent06f3884b95eb12a231e15953b7a8214cb261f6d0
netfilter: nf_queue: place volatile data in own cacheline

As the comment indicates, the data at the end of nfqnl_instance struct is
written on every queue/dequeue, so it should reside in its own cacheline.

Before this change, 'lock' was in first cacheline so we dirtied both.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue.c