summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-05-14 08:23:55 +0200
committerDavid S. Miller <davem@davemloft.net>2008-05-14 08:23:55 +0200
commit5e0f8923f350ff522f8f6aecf198df045af3615f (patch)
tree3e2a17bc032748e8f6ac908128e2776b3fba044a /ipc
parenttcp FRTO: work-around inorder receivers (diff)
downloadlinux-5e0f8923f350ff522f8f6aecf198df045af3615f.tar.xz
linux-5e0f8923f350ff522f8f6aecf198df045af3615f.zip
cipso: Relax too much careful cipso hash function.
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> Acked-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions