]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: add nf_flowtable_time_stamp
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Jan 2020 17:10:04 +0000 (18:10 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Jan 2020 09:30:46 +0000 (10:30 +0100)
commitf0578f6d58a25e9d63b9fdcdfab7d939011b7b57
tree62cf2bd6f5a350238828d450474f0d61aacbe375
parent480925609859680cd1dcc7383cff9ed624e8dd3a
netfilter: flowtable: add nf_flowtable_time_stamp

This patch adds nf_flowtable_time_stamp and updates the existing code to
use it.

This patch is also implicitly fixing up hardware statistic fetching via
nf_flow_offload_stats() where casting to u32 is missing. Use
nf_flow_timeout_delta() to fix this.

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