[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140119.195619.1026706031576275995.davem@davemloft.net>
Date: Sun, 19 Jan 2014 19:56:19 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: hannes@...essinduktion.org
Cc: netdev@...r.kernel.org, brian.haley@...com
Subject: Re: [PATCH net-next] ipv6: optimize link local address search
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
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 <brian.haley@...com>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists