Skip to content

Commit

Permalink
net: Convert packet_net_ops
Browse files Browse the repository at this point in the history
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: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kirill Tkhai authored and David S. Miller committed Feb 13, 2018
1 parent 167f7ac commit cb5e340
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -4557,6 +4557,7 @@ static void __net_exit packet_net_exit(struct net *net)
static struct pernet_operations packet_net_ops = {
.init = packet_net_init,
.exit = packet_net_exit,
.async = true,
};


Expand Down

0 comments on commit cb5e340

Please sign in to comment.