diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-18 14:18:09 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-24 06:23:16 -0400 |
| commit | 9f08ea848117ab521efcfd3e004d8e1a0edc640c (patch) | |
| tree | d1c5ac609cee2c686ca887707497477ac792537b /include/net | |
| parent | 56a97e701c49ff66dd1a5e5e02775209ab5147d3 (diff) | |
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>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/netfilter/nf_tables_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables_core.h b/include/net/netfilter/nf_tables_core.h index 8f690effec37..424684c33771 100644 --- a/include/net/netfilter/nf_tables_core.h +++ b/include/net/netfilter/nf_tables_core.h | |||
| @@ -49,6 +49,8 @@ struct nft_payload_set { | |||
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | extern const struct nft_expr_ops nft_payload_fast_ops; | 51 | extern const struct nft_expr_ops nft_payload_fast_ops; |
| 52 | |||
| 53 | extern struct static_key_false nft_counters_enabled; | ||
| 52 | extern struct static_key_false nft_trace_enabled; | 54 | extern struct static_key_false nft_trace_enabled; |
| 53 | 55 | ||
| 54 | #endif /* _NET_NF_TABLES_CORE_H */ | 56 | #endif /* _NET_NF_TABLES_CORE_H */ |
