[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ce10d01f0908050139g4c152d91r9a02e1fdd0e4943d@mail.gmail.com>
Date: Wed, 5 Aug 2009 11:39:44 +0300
From: Jussi Maki <joamaki@...il.com>
To: netdev@...r.kernel.org
Subject: Re: [PATCH] xfrm: xfrm hash to use Jenkins' hash
Whoops, line wrapping broke the patch, here's it again.
On Wed, Aug 5, 2009 at 10:41 AM, Jussi Mäki<joamaki@...il.com> wrote:
> Hi,
>
> The current xfrm hash functions perform very poorly when a number of
> policies have the same
> last byte in source and destination addresses.
>
> For example with __xfrm_dst_hash, hmask of 0xfff:
>
> 192.168.0.1-172.16.0.1 hashes to 3258
> 192.168.0.2-172.16.0.2 hashes to 3258
> ... and so on.
>
> This patch addresses the issue by rewriting the xfrm
> hash functions to use the Jenkins' hash function.
Download attachment "xfrmhash.patch" of type "application/octet-stream" (4881 bytes)
Powered by blists - more mailing lists