[PATCH net-next 0/2] Converting pernet_operations (part #11)

STALE3132d

4 messages, 2 authors, 2018-03-23 · open the first message on its own page

[PATCH net-next 0/2] Converting pernet_operations (part #11)

From: Kirill Tkhai <hidden>
Date: 2018-03-22 18:34:44

Hi,

this series continues to review and to convert pernet_operations
to make them possible to be executed in parallel for several
net namespaces at the same time.

I thought last series was last, but there is one
new pernet_operations came to kernel. This is
udp_sysctl_ops, and here we convert it.

Also, David Howells acked rxrpc_net_ops, so I resend
the patch in case of it should be queued by patchwork:

https://www.spinics.net/lists/netdev/msg490678.html

Thanks,
Kirill
---

Kirill Tkhai (2):
      net: Convert udp_sysctl_ops
      net: Convert rxrpc_net_ops


 net/ipv4/udp.c     |    3 ++-
 net/rxrpc/net_ns.c |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

--
Signed-off-by: Kirill Tkhai <redacted>

[PATCH net-next 1/2] net: Convert udp_sysctl_ops

From: Kirill Tkhai <hidden>
Date: 2018-03-22 18:34:52

These pernet_operations just initialize udp4 defaults.

Signed-off-by: Kirill Tkhai <redacted>
---
 net/ipv4/udp.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 908fc02fb4f8..c6dc019bc64b 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2842,7 +2842,8 @@ static int __net_init udp_sysctl_init(struct net *net)
 }
 
 static struct pernet_operations __net_initdata udp_sysctl_ops = {
-	.init       = udp_sysctl_init,
+	.init	= udp_sysctl_init,
+	.async	= true,
 };
 
 void __init udp_init(void)

[PATCH net-next 2/2] net: Convert rxrpc_net_ops

From: Kirill Tkhai <hidden>
Date: 2018-03-22 18:35:01

These pernet_operations modifies rxrpc_net_id-pointed
per-net entities. There is external link to AF_RXRPC
in fs/afs/Kconfig, but it seems there is no other
pernet_operations interested in that per-net entities.

Signed-off-by: Kirill Tkhai <redacted>
Acked-by: David Howells <dhowells@redhat.com>
---
 net/rxrpc/net_ns.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/net/rxrpc/net_ns.c b/net/rxrpc/net_ns.c
index f18c9248e0d4..5fd939dabf41 100644
--- a/net/rxrpc/net_ns.c
+++ b/net/rxrpc/net_ns.c
@@ -106,4 +106,5 @@ struct pernet_operations rxrpc_net_ops = {
 	.exit	= rxrpc_exit_net,
 	.id	= &rxrpc_net_id,
 	.size	= sizeof(struct rxrpc_net),
+	.async	= true,
 };

Re: [PATCH net-next 0/2] Converting pernet_operations (part #11)

From: David Miller <davem@davemloft.net>
Date: 2018-03-23 17:01:18

From: Kirill Tkhai <redacted>
Date: Thu, 22 Mar 2018 21:34:37 +0300
this series continues to review and to convert pernet_operations
to make them possible to be executed in parallel for several
net namespaces at the same time.

I thought last series was last, but there is one
new pernet_operations came to kernel. This is
udp_sysctl_ops, and here we convert it.

Also, David Howells acked rxrpc_net_ops, so I resend
the patch in case of it should be queued by patchwork:

https://www.spinics.net/lists/netdev/msg490678.html
Series applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help