]> git.baikalelectronics.ru Git - kernel.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)
commit7573c359f0a4d565998d67adc9e91a2a438951a2
treeedf8561e59627f889581be27fc80c86820c2988e
parent16194f384d06bb4eeb704e19ca62bebee08f28c3
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