netfilter: nf_flow_table: simplify nf_flow_offload_gc_step()
authorTaehee Yoo <ap420073@gmail.com>
Tue, 6 Nov 2018 15:33:07 +0000 (00:33 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 Nov 2018 15:41:09 +0000 (16:41 +0100)
commitb9660987692230b381b64c1f1e912febe142c390
treea1e778a891a6db560ded9a81a93e4b898b5e1d19
parent49de9c090f3cc747cb7f2dc79c175d7bd1d3f1e7
netfilter: nf_flow_table: simplify nf_flow_offload_gc_step()

nf_flow_offload_gc_step() and nf_flow_table_iterate() are very similar.
so that many duplicate code can be removed.
After this patch, nf_flow_offload_gc_step() is simple callback function of
nf_flow_table_iterate() like nf_flow_table_do_cleanup().

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c