]> 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)
commita0c82184751e8e6dd1ad3bce251106da67d2324b
treeedf8561e59627f889581be27fc80c86820c2988e
parent1ea2dae681348542ac5ed0eab3dcd1b10b894d25
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