From: "Denis V. Lunev" <den-GEFAQzZX7r8dnm+yROfE0A@public•gmane.org>
To: "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public•gmane.org>
Cc: Linux Containers
<containers-qjLDD68F18O7TbgM5vRIOg@public•gmane.org>,
netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org,
David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public•gmane.org>,
Alexey Dobriyan
<adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public•gmane.org>
Subject: Re: [PATCH 2/3] tcp: Like icmp use register_pernet_subsys
Date: Fri, 20 Feb 2009 18:57:23 +0300 [thread overview]
Message-ID: <1235145443.9761.152.camel@iris.sw.ru> (raw)
In-Reply-To: <m163j5hzow.fsf_-_-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
Acked-by: Denis V. Lunev <den-GEFAQzZX7r8dnm+yROfE0A@public•gmane.org>
On Fri, 2009-02-20 at 07:53 -0800, Eric W. Biederman wrote:
> To remove the possibility of packets flying around when network
> devices are being cleaned up use reisger_pernet_subsys instead of
> register_pernet_device.
>
> Signed-off-by: Eric W. Biederman <ebiederm-BGArkANP9klv6pq1l3V1OdBPR1lH4CV8@public•gmane.org>
> ---
> net/ipv4/tcp_ipv4.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
> index f6b962f..a738120 100644
> --- a/net/ipv4/tcp_ipv4.c
> +++ b/net/ipv4/tcp_ipv4.c
> @@ -2443,7 +2443,7 @@ static struct pernet_operations __net_initdata tcp_sk_ops = {
> void __init tcp_v4_init(void)
> {
> inet_hashinfo_init(&tcp_hashinfo);
> - if (register_pernet_device(&tcp_sk_ops))
> + if (register_pernet_subsys(&tcp_sk_ops))
> panic("Failed to create the TCP control socket.\n");
> }
>
next prev parent reply other threads:[~2009-02-20 15:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-20 15:47 [PATCH 0/3] Fix Network namespace shutdown take 2 Eric W. Biederman
2009-02-20 15:52 ` [PATCH 1/3] netns: Fix icmp shutdown Eric W. Biederman
2009-02-20 15:53 ` [PATCH 2/3] tcp: Like icmp use register_pernet_subsys Eric W. Biederman
[not found] ` <m163j5hzow.fsf_-_-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-02-20 15:57 ` Denis V. Lunev [this message]
2009-02-22 8:10 ` David Miller
2009-02-20 16:02 ` [PATCH 3/3] netns: Remove net_alive Eric W. Biederman
2009-02-22 8:11 ` David Miller
[not found] ` <m1bpsxhzqz.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-02-20 15:57 ` [PATCH 1/3] netns: Fix icmp shutdown Denis V. Lunev
2009-02-22 8:09 ` David Miller
2009-02-25 12:43 ` [PATCH 0/3] Fix Network namespace shutdown take 2 Daniel Lezcano
2009-03-03 9:07 ` David Miller
2009-03-05 12:35 ` Daniel Lezcano
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=1235145443.9761.152.camel@iris.sw.ru \
--to=den-gefaqzzx7r8dnm+yrofe0a@public$(echo .)gmane.org \
--cc=adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public$(echo .)gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public$(echo .)gmane.org \
--cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public$(echo .)gmane.org \
--cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public$(echo .)gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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