]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: keep chain counters away from hot path
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 18 Jul 2017 18:18:09 +0000 (20:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 24 Jul 2017 10:23:16 +0000 (12:23 +0200)
commit342eb92ef180cbb0b6d031713b94dc31f072943b
treed1c5ac609cee2c686ca887707497477ac792537b
parent09ca423d5a18dc1d5bd5f7732c3211b604443b00
netfilter: nf_tables: keep chain counters away from hot path

These chain counters are only used by the iptables-compat tool, that
allow users to use the x_tables extensions from the existing nf_tables
framework. This patch makes nf_tables by ~5% for the general usecase,
ie. native nft users, where no chain counters are used at all.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables_core.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_core.c