YOSHIFUJI Hideaki / 吉藤英明 0c9a2ac1f8 ipv6: Optmize translation between IPV6_PREFER_SRC_xxx and RT6_LOOKUP_F_xxx.
IPV6_PREFER_SRC_xxx definitions:
| #define IPV6_PREFER_SRC_TMP             0x0001
| #define IPV6_PREFER_SRC_PUBLIC          0x0002
| #define IPV6_PREFER_SRC_COA             0x0004

RT6_LOOKUP_F_xxx definitions:
| #define RT6_LOOKUP_F_SRCPREF_TMP        0x00000008
| #define RT6_LOOKUP_F_SRCPREF_PUBLIC     0x00000010
| #define RT6_LOOKUP_F_SRCPREF_COA        0x00000020

So, we can translate between these two groups by shift operation
instead of multiple 'if's.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-03-07 15:25:53 -08:00
..
2008-10-29 12:52:50 -07:00
2010-02-22 16:20:22 -08:00
2010-01-17 19:16:02 -08:00
2010-02-22 16:20:22 -08:00
2009-10-20 18:55:45 -07:00
2010-02-22 16:20:22 -08:00
2009-10-07 14:50:30 -07:00
2010-02-17 18:48:44 -08:00
2009-06-03 02:51:04 -07:00
2009-09-14 17:03:05 -07:00
2010-01-17 19:16:02 -08:00
2010-03-05 13:34:03 -08:00
2010-03-05 13:34:03 -08:00
2010-01-17 19:16:02 -08:00
2009-06-03 02:51:04 -07:00
2010-03-03 01:04:37 -08:00