netfilter: flowtable: fetch stats only if flow is still alive
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Jan 2020 21:26:38 +0000 (22:26 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 14:51:47 +0000 (15:51 +0100)
commit79b9b685dde1d1bf43cf84163c76953dc3781c85
tree2bf71fe778e4cce8afe029f90bea1e603ad7141a
parent4a7faaf4add3108522512c16c9ee08fb2ad4525e
netfilter: flowtable: fetch stats only if flow is still alive

Do not fetch statistics if flow has expired since it might not in
hardware anymore. After this update, remove the FLOW_OFFLOAD_HW_DYING
check from nf_flow_offload_stats() since this flag is never set on.

Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: wenxu <wenxu@ucloud.cn>
net/netfilter/nf_flow_table_core.c
net/netfilter/nf_flow_table_offload.c