ip_tunnel: fix setting ttl and tos value in collect_md mode
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Thu, 7 Sep 2017 06:08:34 +0000 (14:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:19:56 +0000 (08:19 +0200)
commit60b94125a1fe4988f5392d8537305dad441ef43d
tree558b40db300f7df863cabeb9b138e6fea6876715
parent3f60dadbe1781e292b560dd353d4a5a637ed192d
ip_tunnel: fix setting ttl and tos value in collect_md mode

[ Upstream commit 0f693f1995cf002432b70f43ce73f79bf8d0b6c9 ]

ttl and tos variables are declared and assigned, but are not used in
iptunnel_xmit() function.

Fixes: cfc7381b3002 ("ip_tunnel: add collect_md mode to IPIP tunnel")
Cc: Alexei Starovoitov <ast@fb.com>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_tunnel.c