]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Create RTF_CACHE clone when FLOWI_FLAG_KNOWN_NH is set
authorMartin KaFai Lau <kafai@fb.com>
Sat, 23 May 2015 03:56:03 +0000 (20:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 17:25:34 +0000 (13:25 -0400)
commit258d761a3fc360db225b9e741d9489efc1160319
treeb78147954d2bc53e4f45aec22240d2ef55e2d722
parent4a9a57c3961b3799abe00dc73d807743998f7d05
ipv6: Create RTF_CACHE clone when FLOWI_FLAG_KNOWN_NH is set

This patch always creates RTF_CACHE clone with DST_NOCACHE
when FLOWI_FLAG_KNOWN_NH is set so that the rt6i_dst is set to
the fl6->daddr.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Tested-by: Julian Anastasov <ja@ssi.bg>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/route.c