netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Converting pernet_operations (part #11)
@ 2018-03-22 18:34 Kirill Tkhai
  2018-03-22 18:34 ` [PATCH net-next 1/2] net: Convert udp_sysctl_ops Kirill Tkhai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kirill Tkhai @ 2018-03-22 18:34 UTC (permalink / raw)
  To: davem, yoshfuji, dhowells, ktkhai, netdev

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 <ktkhai@virtuozzo.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH net-next 1/2] net: Convert udp_sysctl_ops
  2018-03-22 18:34 [PATCH net-next 0/2] Converting pernet_operations (part #11) Kirill Tkhai
@ 2018-03-22 18:34 ` Kirill Tkhai
  2018-03-22 18:34 ` [PATCH net-next 2/2] net: Convert rxrpc_net_ops Kirill Tkhai
  2018-03-23 17:01 ` [PATCH net-next 0/2] Converting pernet_operations (part #11) David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Kirill Tkhai @ 2018-03-22 18:34 UTC (permalink / raw)
  To: davem, yoshfuji, dhowells, ktkhai, netdev

These pernet_operations just initialize udp4 defaults.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 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)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH net-next 2/2] net: Convert rxrpc_net_ops
  2018-03-22 18:34 [PATCH net-next 0/2] Converting pernet_operations (part #11) Kirill Tkhai
  2018-03-22 18:34 ` [PATCH net-next 1/2] net: Convert udp_sysctl_ops Kirill Tkhai
@ 2018-03-22 18:34 ` Kirill Tkhai
  2018-03-23 17:01 ` [PATCH net-next 0/2] Converting pernet_operations (part #11) David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Kirill Tkhai @ 2018-03-22 18:34 UTC (permalink / raw)
  To: davem, yoshfuji, dhowells, ktkhai, netdev

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 <ktkhai@virtuozzo.com>
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,
 };

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next 0/2] Converting pernet_operations (part #11)
  2018-03-22 18:34 [PATCH net-next 0/2] Converting pernet_operations (part #11) Kirill Tkhai
  2018-03-22 18:34 ` [PATCH net-next 1/2] net: Convert udp_sysctl_ops Kirill Tkhai
  2018-03-22 18:34 ` [PATCH net-next 2/2] net: Convert rxrpc_net_ops Kirill Tkhai
@ 2018-03-23 17:01 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2018-03-23 17:01 UTC (permalink / raw)
  To: ktkhai; +Cc: yoshfuji, dhowells, netdev

From: Kirill Tkhai <ktkhai@virtuozzo.com>
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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-23 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22 18:34 [PATCH net-next 0/2] Converting pernet_operations (part #11) Kirill Tkhai
2018-03-22 18:34 ` [PATCH net-next 1/2] net: Convert udp_sysctl_ops Kirill Tkhai
2018-03-22 18:34 ` [PATCH net-next 2/2] net: Convert rxrpc_net_ops Kirill Tkhai
2018-03-23 17:01 ` [PATCH net-next 0/2] Converting pernet_operations (part #11) David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).