Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59d26973 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller
Browse files

net: Convert pg_net_ops



These pernet_operations create per-net pktgen threads
and /proc entries. These pernet subsys looks closed
in itself, and there are no pernet_operations outside
this file, which are interested in the threads.
Init and/or exit methods look safe to be executed
in parallel.

Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bd54dce0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3851,6 +3851,7 @@ static struct pernet_operations pg_net_ops = {
	.exit = pg_net_exit,
	.id   = &pg_net_id,
	.size = sizeof(struct pktgen_net),
	.async = true,
};

static int __init pg_init(void)