Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: dborkman@redhat.com
Cc: netdev@vger.kernel.org, jesse.brandeburg@intel.com,
	ebiederm@xmission.com
Subject: Re: [PATCH net-next] net: vxlan: convert to act as a pernet subsystem
Date: Wed, 22 Jan 2014 17:44:03 -0800 (PST)	[thread overview]
Message-ID: <20140122.174403.589765636868016392.davem@davemloft.net> (raw)
In-Reply-To: <1390421273-20152-1-git-send-email-dborkman@redhat.com>

From: Daniel Borkmann <dborkman@redhat.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@xmission.com>
> Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Cc: Eric W. Biederman <ebiederm@xmission.com>
> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>

Applied, thanks.

      reply	other threads:[~2014-01-23  1:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 20:07 [PATCH net-next] net: vxlan: convert to act as a pernet subsystem Daniel Borkmann
2014-01-23  1:44 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140122.174403.589765636868016392.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=dborkman@redhat.com \
    --cc=ebiederm@xmission.com \
    --cc=jesse.brandeburg@intel.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox