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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Sep 2017 03:47:10 +0000 (20:47 -0700)
commit0f693f1995cf002432b70f43ce73f79bf8d0b6c9
tree37594300d55960ee4c7bd27a2149838bdb5b37c3
parent32a805baf0fb70b6dbedefcd7249ac7f580f9e3b
ip_tunnel: fix setting ttl and tos value in collect_md mode

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>
net/ipv4/ip_tunnel.c