summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 12:30:08 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-13 10:36:08 -0500
commitcb5e3400e78598e1eb872954516a02ba85926d84 (patch)
tree79013476e0f2ea647060b0972a20290dd6154dbd /net
parent167f7ac723e5b4ea22c44a0bd8e357bb76a68cd2 (diff)
downloadlinux-cb5e3400e78598e1eb872954516a02ba85926d84.tar.bz2
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: Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/packet/af_packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 616cb9c18f88..2c5a6fe5d749 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -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,
};