提交 c08977bb 编写于 作者: Y YOSHIFUJI Hideaki / 吉藤英明 提交者: David S. Miller

ipv6 route: Use ipv6_addr_hash() in rt6_info_hash_nhsfn().

Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 daad1512
...@@ -388,15 +388,8 @@ static int rt6_info_hash_nhsfn(unsigned int candidate_count, ...@@ -388,15 +388,8 @@ static int rt6_info_hash_nhsfn(unsigned int candidate_count,
{ {
unsigned int val = fl6->flowi6_proto; unsigned int val = fl6->flowi6_proto;
val ^= (__force u32)fl6->daddr.s6_addr32[0]; val ^= ipv6_addr_hash(&fl6->daddr);
val ^= (__force u32)fl6->daddr.s6_addr32[1]; val ^= ipv6_addr_hash(&fl6->saddr);
val ^= (__force u32)fl6->daddr.s6_addr32[2];
val ^= (__force u32)fl6->daddr.s6_addr32[3];
val ^= (__force u32)fl6->saddr.s6_addr32[0];
val ^= (__force u32)fl6->saddr.s6_addr32[1];
val ^= (__force u32)fl6->saddr.s6_addr32[2];
val ^= (__force u32)fl6->saddr.s6_addr32[3];
/* Work only if this not encapsulated */ /* Work only if this not encapsulated */
switch (fl6->flowi6_proto) { switch (fl6->flowi6_proto) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册