linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Converting pernet_operations (part #10)
@ 2018-03-19 11:45 Kirill Tkhai
  2018-03-19 11:45 ` [PATCH net-next 1/2] net: Convert lowpan_frags_ops Kirill Tkhai
  2018-03-19 11:45 ` [PATCH net-next 2/2] net: Convert nf_ct_net_ops Kirill Tkhai
  0 siblings, 2 replies; 5+ messages in thread
From: Kirill Tkhai @ 2018-03-19 11:45 UTC (permalink / raw)
  To: alex.aring, stefan, davem, pablo, kadlec, fw, yoshfuji, brouer,
	keescook, ktkhai, linux-wpan, netdev, netfilter-devel

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. There are two ops similar
to already converted ip4_frags_ops.

This requires a560002437d3 "net: Fix hlist corruptions
in inet_evict_bucket()", which is currently in net.git.

It seems to be the finial convertion series.

Thanks,
Kirill
---

Kirill Tkhai (2):
      net: Convert lowpan_frags_ops
      net: Convert nf_ct_net_ops


 net/ieee802154/6lowpan/reassembly.c     |    1 +
 net/ipv6/netfilter/nf_conntrack_reasm.c |    1 +
 2 files changed, 2 insertions(+)

--
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>

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

* [PATCH net-next 1/2] net: Convert lowpan_frags_ops
  2018-03-19 11:45 [PATCH net-next 0/2] Converting pernet_operations (part #10) Kirill Tkhai
@ 2018-03-19 11:45 ` Kirill Tkhai
  2018-03-22 15:14   ` David Miller
  2018-03-19 11:45 ` [PATCH net-next 2/2] net: Convert nf_ct_net_ops Kirill Tkhai
  1 sibling, 1 reply; 5+ messages in thread
From: Kirill Tkhai @ 2018-03-19 11:45 UTC (permalink / raw)
  To: alex.aring, stefan, davem, pablo, kadlec, fw, yoshfuji, brouer,
	keescook, ktkhai, linux-wpan, netdev, netfilter-devel

These pernet_operations register and unregister sysctl.
Also, there is inet_frags_exit_net() called in exit method,
which has to be safe after a560002437d3 "net: Fix hlist
corruptions in inet_evict_bucket()".

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 net/ieee802154/6lowpan/reassembly.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ieee802154/6lowpan/reassembly.c b/net/ieee802154/6lowpan/reassembly.c
index 85bf86ad6b18..a9ccb1322f69 100644
--- a/net/ieee802154/6lowpan/reassembly.c
+++ b/net/ieee802154/6lowpan/reassembly.c
@@ -603,6 +603,7 @@ static void __net_exit lowpan_frags_exit_net(struct net *net)
 static struct pernet_operations lowpan_frags_ops = {
 	.init = lowpan_frags_init_net,
 	.exit = lowpan_frags_exit_net,
+	.async = true,
 };
 
 int __init lowpan_net_frag_init(void)


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

* [PATCH net-next 2/2] net: Convert nf_ct_net_ops
  2018-03-19 11:45 [PATCH net-next 0/2] Converting pernet_operations (part #10) Kirill Tkhai
  2018-03-19 11:45 ` [PATCH net-next 1/2] net: Convert lowpan_frags_ops Kirill Tkhai
@ 2018-03-19 11:45 ` Kirill Tkhai
  2018-03-22 15:14   ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Kirill Tkhai @ 2018-03-19 11:45 UTC (permalink / raw)
  To: alex.aring, stefan, davem, pablo, kadlec, fw, yoshfuji, brouer,
	keescook, ktkhai, linux-wpan, netdev, netfilter-devel

These pernet_operations register and unregister sysctl.
Also, there is inet_frags_exit_net() called in exit method,
which has to be safe after a560002437d3 "net: Fix hlist
corruptions in inet_evict_bucket()".

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 net/ipv6/netfilter/nf_conntrack_reasm.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
index b84ce3e6d728..34136fe80ed5 100644
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
@@ -646,6 +646,7 @@ static void nf_ct_net_exit(struct net *net)
 static struct pernet_operations nf_ct_net_ops = {
 	.init = nf_ct_net_init,
 	.exit = nf_ct_net_exit,
+	.async = true,
 };
 
 int nf_ct_frag6_init(void)


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

* Re: [PATCH net-next 1/2] net: Convert lowpan_frags_ops
  2018-03-19 11:45 ` [PATCH net-next 1/2] net: Convert lowpan_frags_ops Kirill Tkhai
@ 2018-03-22 15:14   ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-03-22 15:14 UTC (permalink / raw)
  To: ktkhai
  Cc: alex.aring, stefan, pablo, kadlec, fw, yoshfuji, brouer,
	keescook, linux-wpan, netdev, netfilter-devel

From: Kirill Tkhai <ktkhai@virtuozzo.com>
Date: Mon, 19 Mar 2018 14:45:37 +0300

> These pernet_operations register and unregister sysctl.
> Also, there is inet_frags_exit_net() called in exit method,
> which has to be safe after a560002437d3 "net: Fix hlist
> corruptions in inet_evict_bucket()".
> 
> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>

Applied.

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

* Re: [PATCH net-next 2/2] net: Convert nf_ct_net_ops
  2018-03-19 11:45 ` [PATCH net-next 2/2] net: Convert nf_ct_net_ops Kirill Tkhai
@ 2018-03-22 15:14   ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-03-22 15:14 UTC (permalink / raw)
  To: ktkhai
  Cc: alex.aring, stefan, pablo, kadlec, fw, yoshfuji, brouer,
	keescook, linux-wpan, netdev, netfilter-devel

From: Kirill Tkhai <ktkhai@virtuozzo.com>
Date: Mon, 19 Mar 2018 14:45:46 +0300

> These pernet_operations register and unregister sysctl.
> Also, there is inet_frags_exit_net() called in exit method,
> which has to be safe after a560002437d3 "net: Fix hlist
> corruptions in inet_evict_bucket()".
> 
> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>

Applied.

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

end of thread, other threads:[~2018-03-22 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 11:45 [PATCH net-next 0/2] Converting pernet_operations (part #10) Kirill Tkhai
2018-03-19 11:45 ` [PATCH net-next 1/2] net: Convert lowpan_frags_ops Kirill Tkhai
2018-03-22 15:14   ` David Miller
2018-03-19 11:45 ` [PATCH net-next 2/2] net: Convert nf_ct_net_ops Kirill Tkhai
2018-03-22 15:14   ` 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).