From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
Xiaotian Feng <dfeng@redhat.com>,
netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org,
coreteam@netfilter.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Andrew Morton <akpm@linux-foundation.org>,
Rusty Russell <rusty@rustcorp.com.au>,
Alexey Dobriyan <adobriyan@gmail.com>
Subject: Re: [PATCH] netfilter: xtables: stackptr should be percpu
Date: Mon, 31 May 2010 16:37:49 +0200 [thread overview]
Message-ID: <4C03C9BD.2080907@trash.net> (raw)
In-Reply-To: <alpine.LSU.2.01.1005311519340.25402@obet.zrqbmnf.qr>
Jan Engelhardt wrote:
> On Monday 2010-05-31 15:13, Eric Dumazet wrote:
>> All cpus share a single cache line for their 'stackptr' storage,
>> introduced in commit f3c5c1bfd4
>>
>> This is a stable candidate (2.6.34)
>
> Stackptr was first introduced for 2.6.35-rcX.
>
>> + i->stackptr = alloc_percpu(unsigned int);
>> if (i->stackptr == NULL)
>> return -ENOMEM;
>> - memset(i->stackptr, 0, size);
>>
>> size = sizeof(void **) * nr_cpu_ids;
>> if (size > PAGE_SIZE)
>
> Are alloc_percpu areas cleared?
>
> Acked-By: Jan Engelhardt <jengelh@medozas.de>
Applied, thanks.
next prev parent reply other threads:[~2010-05-31 14:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-31 11:06 [PATCH] netfilter: don't xt_jumpstack_alloc twice in xt_register_table Xiaotian Feng
2010-05-31 11:51 ` Jan Engelhardt
2010-05-31 13:13 ` [PATCH] netfilter: xtables: stackptr should be percpu Eric Dumazet
2010-05-31 13:22 ` Jan Engelhardt
2010-05-31 13:44 ` Eric Dumazet
2010-05-31 14:09 ` Jan Engelhardt
2010-05-31 14:16 ` Eric Dumazet
2010-05-31 14:37 ` Patrick McHardy [this message]
2010-05-31 13:19 ` [PATCH] netfilter: don't xt_jumpstack_alloc twice in xt_register_table Jan Engelhardt
2010-05-31 14:34 ` Patrick McHardy
2010-05-31 14:37 ` Patrick McHardy
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=4C03C9BD.2080907@trash.net \
--to=kaber@trash.net \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=dfeng@redhat.com \
--cc=eric.dumazet@gmail.com \
--cc=jengelh@medozas.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=netfilter@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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