ipvs: convert to use pernet nf_hook api
authorFlorian Westphal <fw@strlen.de>
Wed, 19 Apr 2017 16:25:22 +0000 (18:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Apr 2017 07:30:21 +0000 (09:30 +0200)
commitefe41606184ef33efde1d708eaf7d0fad9e06694
tree481bb56553a17178e4de485e45819d4620d94644
parent1fefe14725c7cc7c720f9f8af2bc3bef13fd7d39
ipvs: convert to use pernet nf_hook api

nf_(un)register_hooks has to maintain an internal hook list to add/remove
those hooks from net namespaces as they are added/deleted.

ipvs already uses pernet_ops, so we can switch to the (more recent)
pernet hook api instead.

Compile tested only.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_core.c