]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: do not dump chain counters if not enabled
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Oct 2017 15:18:27 +0000 (17:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Oct 2017 12:49:19 +0000 (14:49 +0200)
commit635b320271fdb4b37d7f890d487a0648316bc02a
tree23967558ecc256acdfb814348d31dee252a4da15
parent296658e45c6bb49fc2cf34ec0d057e5ea5bcd840
netfilter: nf_tables: do not dump chain counters if not enabled

Chain counters are only enabled on demand since fb34607dfc37, skip them
when dumping them via netlink.

Fixes: fb34607dfc37 ("netfilter: nf_tables: keep chain counters away from hot path")
Reported-by: Johny Mattsson <johny.mattsson+kernel@gmail.com>
Tested-by: Johny Mattsson <johny.mattsson+kernel@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c