ipv6: use lwtunnel_output6() only if flag redirect is set
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 24 Jul 2015 08:59:41 +0000 (10:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 08:00:51 +0000 (01:00 -0700)
commit6673a9f4e35c1f0e9976cd4e88042f87674a6b02
treebd80eb6451b6fa61f3edd6960a0dca55be98c1cd
parent9267135cca60674321139626f49077a4937d730e
ipv6: use lwtunnel_output6() only if flag redirect is set

This function make sense only when LWTUNNEL_STATE_OUTPUT_REDIRECT is set.
The check is already done in IPv4.

CC: Thomas Graf <tgraf@suug.ch>
CC: Roopa Prabhu <roopa@cumulusnetworks.com>
Fixes: 74a0f2fe8ed5 ("ipv6: rt6_info output redirect to tunnel output")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c