]> git.itanic.dy.fi Git - linux-stable/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)
commit9f08ea848117ab521efcfd3e004d8e1a0edc640c
treed1c5ac609cee2c686ca887707497477ac792537b
parent56a97e701c49ff66dd1a5e5e02775209ab5147d3
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