netfilter: flowtable: add nf_flow_offload_work_alloc()
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Jan 2020 19:48:51 +0000 (20:48 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 14:51:48 +0000 (15:51 +0100)
commit87265d842c59d93798b380afe3288a2bdc19bcd9
treef6c7e0fb5388b147625d53758150d84bce31df0d
parenta7521a60a5f3e1f58a015fedb6e69aed40455feb
netfilter: flowtable: add nf_flow_offload_work_alloc()

Add helper function to allocate and initialize flow offload work and use
it to consolidate existing code.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_offload.c