]> 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)
commitfb34607dfc37ba53a55be1be15a2392753bdf857
treed1c5ac609cee2c686ca887707497477ac792537b
parentcde9c67d0967b3e1d998b426e6ce8912b4839609
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