From: Steffen Klassert <steffen.klassert@secunet.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Gao feng <gaofeng@cn.fujitsu.com>,
herbert@gondor.apana.org.au, davem@davemloft.net,
netdev@vger.kernel.org, containers@lists.linux-foundation.org
Subject: Re: [PATCH net-next 1/2] inetpeer: add namespace support for inetpeer
Date: Tue, 5 Jun 2012 07:52:08 +0200 [thread overview]
Message-ID: <20120605055208.GA27795@secunet.com> (raw)
In-Reply-To: <1338867619.2760.1980.camel@edumazet-glaptop>
On Tue, Jun 05, 2012 at 05:40:19AM +0200, Eric Dumazet wrote:
> On Tue, 2012-06-05 at 10:23 +0800, Gao feng wrote:
> >
> > +static int __net_init inetpeer_net_init(struct net *net)
> > +{
> > +
> > + net->ipv4.peers = kmemdup(&v4_peers,
> > + sizeof(v4_peers),
> > + GFP_KERNEL);
>
> kzalloc(), and init ->root to peer_avl_empty_rcu
>
> > + if (net->ipv4.peers == NULL)
> > + return -1;
...and return -ENOMEM if memory allocation fails.
next prev parent reply other threads:[~2012-06-05 5:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 2:23 [PATCH net-next 1/2] inetpeer: add namespace support for inetpeer Gao feng
[not found] ` <1338863012-4902-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-06-05 2:23 ` [PATCH net-next 2/2] inetpeer: add parameter net for inet_getpeer_v4, v6 Gao feng
2012-06-05 3:40 ` [PATCH net-next 1/2] inetpeer: add namespace support for inetpeer Eric Dumazet
2012-06-05 3:40 ` Eric Dumazet
2012-06-05 5:52 ` Steffen Klassert [this message]
2012-06-05 5:58 ` Gao feng
[not found] ` <20120605055208.GA27795-opNxpl+3fjRBDgjK7y7TUQ@public.gmane.org>
2012-06-05 5:58 ` Gao feng
2012-06-05 5:52 ` Steffen Klassert
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=20120605055208.GA27795@secunet.com \
--to=steffen.klassert@secunet.com \
--cc=containers@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=gaofeng@cn.fujitsu.com \
--cc=herbert@gondor.apana.org.au \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.