|
@@ -335,7 +335,7 @@ static int __init nf_ct_proto_gre_init(void)
|
|
rv = nf_conntrack_l4proto_register(&nf_conntrack_l4proto_gre4);
|
|
rv = nf_conntrack_l4proto_register(&nf_conntrack_l4proto_gre4);
|
|
if (rv < 0)
|
|
if (rv < 0)
|
|
return rv;
|
|
return rv;
|
|
- rv = register_pernet_gen_device(&proto_gre_net_id, &proto_gre_net_ops);
|
|
|
|
|
|
+ rv = register_pernet_gen_subsys(&proto_gre_net_id, &proto_gre_net_ops);
|
|
if (rv < 0)
|
|
if (rv < 0)
|
|
nf_conntrack_l4proto_unregister(&nf_conntrack_l4proto_gre4);
|
|
nf_conntrack_l4proto_unregister(&nf_conntrack_l4proto_gre4);
|
|
return rv;
|
|
return rv;
|
|
@@ -344,7 +344,7 @@ static int __init nf_ct_proto_gre_init(void)
|
|
static void nf_ct_proto_gre_fini(void)
|
|
static void nf_ct_proto_gre_fini(void)
|
|
{
|
|
{
|
|
nf_conntrack_l4proto_unregister(&nf_conntrack_l4proto_gre4);
|
|
nf_conntrack_l4proto_unregister(&nf_conntrack_l4proto_gre4);
|
|
- unregister_pernet_gen_device(proto_gre_net_id, &proto_gre_net_ops);
|
|
|
|
|
|
+ unregister_pernet_gen_subsys(proto_gre_net_id, &proto_gre_net_ops);
|
|
}
|
|
}
|
|
|
|
|
|
module_init(nf_ct_proto_gre_init);
|
|
module_init(nf_ct_proto_gre_init);
|