ip6_tunnel: Correct tos value in collect_md mode
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sat, 17 Jun 2017 03:38:05 +0000 (11:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jun 2017 03:56:57 +0000 (23:56 -0400)
commit46f8cd9d2fc1e4e8b82b53a0007f6c92e80c930b
tree808f6f1e1105c25d48141328cc8a8373c32d8aa7
parent76371d2e3ad1f84426a30ebcd8c3b9b98f4c724f
ip6_tunnel: Correct tos value in collect_md mode

Same as ip_gre, geneve and vxlan, use key->tos as traffic class value.

CC: Peter Dawson <petedaws@gmail.com>
Fixes: 0e9a709560db ("ip6_tunnel, ip6_gre: fix setting of DSCP on
encapsulated packets”)
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: Peter Dawson <peter.a.dawson@boeing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c