[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080513.232405.32321998.davem@davemloft.net>
Date: Tue, 13 May 2008 23:24:05 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: paul.moore@...com
Cc: xemul@...nvz.org, netdev@...r.kernel.org
Subject: Re: [PATCH][CIPSO]: Relax too much careful cipso hash function.
From: Paul Moore <paul.moore@...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@...nvz.org>
>
> Thanks Pavel, braino on my part.
>
> Acked-by: Paul Moore <paul.moore@...com>
Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists