Thread (2 messages) flat view 2 messages, 2 authors, 2014-01-20

Re: [PATCH net-next] ipv6: optimize link local address search

From: David Miller <davem@davemloft.net>
Date: 2014-01-20 03:56:20

From: Hannes Frederic Sowa <redacted>
Date: Sun, 19 Jan 2014 21:58:19 +0100
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 <redacted>
Signed-off-by: Hannes Frederic Sowa <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help