summaryrefslogtreecommitdiff
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2014-01-20 00:58:19 +0400
committerDavid S. Miller <davem@davemloft.net>2014-01-20 07:55:50 +0400
commit602582ca7a159622aebc5e643f6577fe8f0d6a41 (patch)
treedb0366c0727e2bea43a32bc831eb4b68bddd3079 /crypto/anubis.c
parent395056edd687f7b44e6e5c2c3d2725446d762434 (diff)
downloadlinux-602582ca7a159622aebc5e643f6577fe8f0d6a41.tar.xz
ipv6: optimize link local address search
ipv6_link_dev_addr sorts newly added addresses by scope in ifp->addr_list. Smaller scope addresses are added to the tail of the list. Use this fact to iterate in reverse over addr_list and break out as soon as a higher scoped one showes up, so we can spare some cycles on machines with lot's of addresses. The ordering of the addresses is not relevant and we are more likely to get the eui64 generated address with this change anyway. Suggested-by: Brian Haley <brian.haley@hp.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions