netfilter: nf_tables: minor nf_chain_type cleanups
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / netfilter / nft_chain_route_ipv6.c
index 3620f8851eba1e1be0b3f57d33214072dc23fb90..b2b7effa896b5e0d63798910f76323ace27dc62d 100644 (file)
@@ -60,14 +60,14 @@ static unsigned int nf_route_table_hook(const struct nf_hook_ops *ops,
 }
 
 static const struct nf_chain_type nft_chain_route_ipv6 = {
-       .family         = NFPROTO_IPV6,
        .name           = "route",
        .type           = NFT_CHAIN_T_ROUTE,
+       .family         = NFPROTO_IPV6,
+        .owner         = THIS_MODULE,
        .hook_mask      = (1 << NF_INET_LOCAL_OUT),
-       .fn             = {
+       .hooks          = {
                 [NF_INET_LOCAL_OUT]    = nf_route_table_hook,
         },
-        .me            = THIS_MODULE,
 };
 
 static int __init nft_chain_route_init(void)