aboutsummaryrefslogtreecommitdiff
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-05-13 23:23:55 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-13 23:23:55 -0700
commit5e0f8923f350ff522f8f6aecf198df045af3615f (patch)
tree3e2a17bc032748e8f6ac908128e2776b3fba044a /net/sctp/sm_make_chunk.c
parent79d44516b4b178ffb6e2159c75584cfcfc097914 (diff)
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 'net/sctp/sm_make_chunk.c')
0 files changed, 0 insertions, 0 deletions