SCTP: Use hashed lookup when looking for an association.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 9 Nov 2007 16:41:36 +0000 (11:41 -0500)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 9 Nov 2007 16:41:36 +0000 (11:41 -0500)
commit123ed979eaa8de0dd2422862d247469eda0bd645
tree745e6ff660cc401dd32e684f3651920e42150211
parent027f6e1ad32de32f9fe1c61d0f744e329e8acfd9
SCTP: Use hashed lookup when looking for an association.

A SCTP endpoint may have a lot of associations on them and walking
the list is fairly inefficient.  Instead, use a hashed lookup,
and filter out the hash list based on the endopoing we already have.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/endpointola.c