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
..
2010-02-10 12:31:10 -08:00
2010-03-07 15:25:50 -08:00
2010-02-18 14:30:18 -08:00
2010-03-05 13:34:03 -08:00
2009-11-25 15:14:13 -08:00
2009-12-26 20:38:23 -08:00
2010-03-05 13:34:03 -08:00
2010-02-10 12:31:10 -08:00
2010-02-18 14:30:18 -08:00
2009-12-15 08:53:25 -08:00
2010-02-22 16:21:12 -08:00
2010-03-05 13:34:03 -08:00
2010-01-17 19:16:02 -08:00
2010-03-02 14:28:49 -05:00
2009-11-25 15:14:13 -08:00
2010-03-05 13:34:03 -08:00
2010-03-05 13:34:03 -08:00
2010-02-18 14:12:06 -08:00
2009-07-12 12:22:34 -07:00
2010-02-18 14:30:18 -08:00
2010-03-05 13:34:03 -08:00
2010-03-03 01:04:37 -08:00
2009-12-17 10:51:40 -05:00