summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-28 17:13:44 (GMT)
committerPablo Neira Ayuso <pablo@netfilter.org>2016-05-05 14:39:45 (GMT)
commit245cfdcaba2e7e4ee16b12af547ead37f9c501cd (patch)
tree73bf9cd8574a8c9067c377c32e35f3493f956dce /block
parent868043485ecb7cda503af0dfb9e2804e0260196a (diff)
downloadlinux-245cfdcaba2e7e4ee16b12af547ead37f9c501cd.tar.xz
netfilter: conntrack: small refactoring of conntrack seq_printf
The iteration process is lockless, so we test if the conntrack object is eligible for printing (e.g. is AF_INET) after obtaining the reference count. Once we put all conntracks into same hash table we might see more entries that need to be skipped. So add a helper and first perform the test in a lockless fashion for fast skip. Once we obtain the reference count, just repeat the check. Note that this refactoring also includes a missing check for unconfirmed conntrack entries due to slab rcu object re-usage, so they need to be skipped since they are not part of the listing. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions