diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-02-26 10:15:17 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 10:28:45 +0200 |
commit | a268de77faf6881756b4943b287fd78ec05a7d1e (patch) | |
tree | 029acf1a0ad1d2a20509a9413a15545eba2fa195 /net/ipv6 | |
parent | netfilter: nf_flow_table: relax mixed ipv4/ipv6 flowtable dependencies (diff) | |
download | linux-a268de77faf6881756b4943b287fd78ec05a7d1e.tar.xz linux-a268de77faf6881756b4943b287fd78ec05a7d1e.zip |
netfilter: nf_flow_table: move init code to nf_flow_table_core.c
Reduces duplication of .gc and .params in flowtable type definitions and
makes the API clearer
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/nf_flow_table_ipv6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/nf_flow_table_ipv6.c b/net/ipv6/netfilter/nf_flow_table_ipv6.c index f1804ce8d561..c511d206bf9b 100644 --- a/net/ipv6/netfilter/nf_flow_table_ipv6.c +++ b/net/ipv6/netfilter/nf_flow_table_ipv6.c @@ -8,8 +8,7 @@ static struct nf_flowtable_type flowtable_ipv6 = { .family = NFPROTO_IPV6, - .params = &nf_flow_offload_rhash_params, - .gc = nf_flow_offload_work_gc, + .init = nf_flow_table_init, .free = nf_flow_table_free, .hook = nf_flow_offload_ipv6_hook, .owner = THIS_MODULE, |