]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: nf_tables: 64bit stats need some extra synchronization
authorEric Dumazet <edumazet@google.com>
Wed, 9 Jul 2014 13:14:06 +0000 (15:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Jul 2014 10:00:17 +0000 (12:00 +0200)
commitce355e209feb030945dae4c358c02f29a84f3f8b
treeedf8561e59627f889581be27fc80c86820c2988e
parent38e029f14a9702f71d5953246df9f722bca49017
netfilter: nf_tables: 64bit stats need some extra synchronization

Use generic u64_stats_sync infrastructure to get proper 64bit stats,
even on 32bit arches, at no extra cost for 64bit arches.

Without this fix, 32bit arches can have some wrong counters at the time
the carry is propagated into upper word.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_core.c