From: David Miller <davem@davemloft.net>
To: paul.moore@hp.com
Cc: xemul@openvz.org, netdev@vger.kernel.org
Subject: Re: [PATCH][CIPSO]: Relax too much careful cipso hash function.
Date: Tue, 13 May 2008 23:24:05 -0700 (PDT) [thread overview]
Message-ID: <20080513.232405.32321998.davem@davemloft.net> (raw)
In-Reply-To: <200805131434.44463.paul.moore@hp.com>
From: Paul Moore <paul.moore@hp.com>
Date: Tue, 13 May 2008 14:34:44 -0400
> On Tuesday 13 May 2008 9:11:25 am Pavel Emelyanov wrote:
> > The cipso_v4_cache is allocated to contain CIPSO_V4_CACHE_BUCKETS
> > buckets. The CIPSO_V4_CACHE_BUCKETS = 1 << CIPSO_V4_CACHE_BUCKETBITS,
> > where CIPSO_V4_CACHE_BUCKETBITS = 7.
> >
> > The bucket-selection function for this hash is calculated like this:
> >
> > bkt = hash & (CIPSO_V4_CACHE_BUCKETBITS - 1);
> > ^^^
> >
> > i.e. picking only 4 buckets of possible 128 :)
> >
> > Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
>
> Thanks Pavel, braino on my part.
>
> Acked-by: Paul Moore <paul.moore@hp.com>
Applied, thanks everyone.
prev parent reply other threads:[~2008-05-14 6:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 13:11 [PATCH][CIPSO]: Relax too much careful cipso hash function Pavel Emelyanov
2008-05-13 18:34 ` Paul Moore
2008-05-14 6:24 ` 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=20080513.232405.32321998.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=paul.moore@hp.com \
--cc=xemul@openvz.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;
as well as URLs for NNTP newsgroup(s).