From: Patrick McHardy <kaber@trash.net>
To: Mohammad Mohsenzadeh <mmohsenz@gmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: 2.6.20 support for other 'features'
Date: Fri, 13 Apr 2007 06:22:29 +0200 [thread overview]
Message-ID: <461F0585.9030103@trash.net> (raw)
In-Reply-To: <e6af3bc80704121549g44dfb1bct8a8a735a2d6dc67f@mail.gmail.com>
Mohammad Mohsenzadeh wrote:
> On 4/11/07, Patrick McHardy <kaber@trash.net> wrote:
>
>> And how would it do that for two external modules, that don't know
>> how large the last part is?
>>
>
> That's absolutely correct. How about having only one slab cache and a
> dynamic list of features. Whenever a new feature is registered or an
> old one is removed, we can reallocate slab cache with a new size. I'm
> not sure if that would work for sure, just throwing some ideas out
> there. Something like
>
> [...]
> One problem that I can see with this is that we have flush all our
> conntracks so we can call kmem_cache_destroy and then recreate the
> slab with new size. Would this be alright since it would only happen
> on registering and unregistering features since it doesn't happen
> often.
No, I don't like that, besides a single slab cache would force us to
waste space by always allocating the maximum size even if not needed
for a specific conntrack (helpers for example are rare). Rusty had a
better idea, search the archives for ct_extend.
next prev parent reply other threads:[~2007-04-13 4:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 17:39 2.6.20 support for other 'features' Mohammad Mohsenzadeh
2007-04-11 17:41 ` Jan Engelhardt
2007-04-11 17:46 ` Mohammad Mohsenzadeh
2007-04-11 17:49 ` Patrick McHardy
2007-04-11 17:51 ` Patrick McHardy
2007-04-11 18:14 ` Mohammad Mohsenzadeh
2007-04-11 18:22 ` Patrick McHardy
2007-04-12 22:49 ` Mohammad Mohsenzadeh
2007-04-13 4:22 ` Patrick McHardy [this message]
[not found] ` <200704161302.l3GD27Ft021389@toshiba.co.jp>
2007-04-16 13:10 ` Patrick McHardy
2007-04-16 13:02 ` Yasuyuki KOZAKAI
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=461F0585.9030103@trash.net \
--to=kaber@trash.net \
--cc=mmohsenz@gmail.com \
--cc=netfilter-devel@lists.netfilter.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.