[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140122.174403.589765636868016392.davem@davemloft.net>
Date: Wed, 22 Jan 2014 17:44:03 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dborkman@...hat.com
Cc: netdev@...r.kernel.org, jesse.brandeburg@...el.com,
ebiederm@...ssion.com
Subject: Re: [PATCH net-next] net: vxlan: convert to act as a pernet
subsystem
From: Daniel Borkmann <dborkman@...hat.com>
Date: Wed, 22 Jan 2014 21:07:53 +0100
> As per suggestion from Eric W. Biederman, vxlan should be using
> {un,}register_pernet_subsys() instead of {un,}register_pernet_device()
> to ensure the vxlan_net structure is initialized before and cleaned
> up after all network devices in a given network namespace i.e. when
> dealing with network notifiers. This is similarly handeled already in
> commit 91e2ff3528ac ("net: Teach vlans to cleanup as a pernet subsystem")
> and, thus, improves upon fd27e0d44a89 ("net: vxlan: do not use vxlan_net
> before checking event type"). Just as in 91e2ff3528ac, we do not need
> to explicitly handle deletion of vxlan devices as network namespace
> exit calls dellink on all remaining virtual devices, and
> rtnl_link_unregister() calls dellink on all outstanding devices in that
> network namespace, so we can entirely drop the pernet exit operation
> as well. Moreover, on vxlan module exit, rcu_barrier() is called by
> netns since commit 3a765edadb28 ("netns: Add an explicit rcu_barrier
> to unregister_pernet_{device|subsys}"), so this may be omitted. Tested
> with various scenarios and works well on my side.
>
> Suggested-by: Eric W. Biederman <ebiederm@...ssion.com>
> Cc: Jesse Brandeburg <jesse.brandeburg@...el.com>
> Cc: Eric W. Biederman <ebiederm@...ssion.com>
> Signed-off-by: Daniel Borkmann <dborkman@...hat.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists