Andrey V. Elsukov 3ea87cb57f Simplify in6_setscope() function to get better performance.
Currently we use interface indeces as zone IDs for link-local and
interface-local scopes, and since we don't have any tool to configure
zone IDs, there is no need to acquire the afdata lock several times per
packet only to read if_index value.
So, now in6_setscope reads zone IDs for interface-local, link-local and
global scopes without a lock.

Sponsored by:	Yandex LLC
MFC after:	2 weeks
2013-01-10 00:10:24 +00:00
..
2012-05-24 18:25:09 +00:00
2012-10-22 21:49:56 +00:00
2012-10-22 21:49:56 +00:00
2012-10-22 21:49:56 +00:00
2013-01-09 18:18:08 +00:00
2012-10-22 21:49:56 +00:00
2012-10-22 21:49:56 +00:00
2013-01-09 18:18:08 +00:00
2012-10-22 21:49:56 +00:00
2012-05-25 01:43:52 +00:00
2012-11-17 20:04:04 +00:00
2012-11-17 20:04:04 +00:00
2012-10-10 08:36:38 +00:00
2012-10-22 21:49:56 +00:00