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)
commit3da59bd94583d1239e4fbdee452265a160b9cd71
treeb78147954d2bc53e4f45aec22240d2ef55e2d722
parent48e8aa6e3137692d38f20e8bfff100e408c6bc53
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