summaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 10:30:08 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-13 16:36:08 +0100
commitcb5e3400e78598e1eb872954516a02ba85926d84 (patch)
tree79013476e0f2ea647060b0972a20290dd6154dbd /net/packet
parentnet: Convert unix_net_ops (diff)
downloadlinux-cb5e3400e78598e1eb872954516a02ba85926d84.tar.xz
linux-cb5e3400e78598e1eb872954516a02ba85926d84.zip
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/packet')
-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,
};