diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-13 00:02:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-13 20:17:14 -0500 |
commit | 2b464f61f036f7fb9cbc34710c9b2390499e87d0 (patch) | |
tree | 25bc3cae637159d4ca9f97ce1e402d13b3f0348e /net/ipv6 | |
parent | c08977bb2b198cca1827d982b0c137458f4c2927 (diff) |
ipv6 xfrm: Use ipv6_addr_hash() in xfrm6_tunnel_spi_hash_byaddr().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/xfrm6_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c index ee5a7065aacc..babd1674388a 100644 --- a/net/ipv6/xfrm6_tunnel.c +++ b/net/ipv6/xfrm6_tunnel.c | |||
@@ -72,7 +72,7 @@ static inline unsigned int xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *ad | |||
72 | { | 72 | { |
73 | unsigned int h; | 73 | unsigned int h; |
74 | 74 | ||
75 | h = (__force u32)(addr->a6[0] ^ addr->a6[1] ^ addr->a6[2] ^ addr->a6[3]); | 75 | h = ipv6_addr_hash((const struct in6_addr *)addr); |
76 | h ^= h >> 16; | 76 | h ^= h >> 16; |
77 | h ^= h >> 8; | 77 | h ^= h >> 8; |
78 | h &= XFRM6_TUNNEL_SPI_BYADDR_HSIZE - 1; | 78 | h &= XFRM6_TUNNEL_SPI_BYADDR_HSIZE - 1; |