Commit cb5e3400 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert packet_net_ops

These pernet_operations just create and destroy /proc entry,
and another operations do not touch it.

Also, nobody else are interested in foreign net::packet::sklist.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: default avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 167f7ac7
...@@ -4557,6 +4557,7 @@ static void __net_exit packet_net_exit(struct net *net) ...@@ -4557,6 +4557,7 @@ static void __net_exit packet_net_exit(struct net *net)
static struct pernet_operations packet_net_ops = { static struct pernet_operations packet_net_ops = {
.init = packet_net_init, .init = packet_net_init,
.exit = packet_net_exit, .exit = packet_net_exit,
.async = true,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment