]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ip6_tunnel: fix traffic class routing for tunnels
authorLiam McBirnie <mcbirnie.l@gmail.com>
Thu, 1 Jun 2017 05:36:01 +0000 (15:36 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 13:07:33 +0000 (15:07 +0200)
commit3ab7563eed885448eba9d2bea70f1c585bf7c710
treed9ad5faf92af5d6c4881fbd9f2fabbde01a738c2
parent35e08f6e2bfed4ac35b10df11fc9eb17cdb40354
ip6_tunnel: fix traffic class routing for tunnels

[ Upstream commit 5f733ee68f9a4df94775299ac6a7ab260704f6ed ]

ip6_route_output() requires that the flowlabel contains the traffic
class for policy routing.

Commit 0e9a709560db ("ip6_tunnel, ip6_gre: fix setting of DSCP on
encapsulated packets") removed the code which previously added the
traffic class to the flowlabel.

The traffic class is added here because only route lookup needs the
flowlabel to contain the traffic class.

Fixes: 0e9a709560db ("ip6_tunnel, ip6_gre: fix setting of DSCP on encapsulated packets")
Signed-off-by: Liam McBirnie <liam.mcbirnie@boeing.com>
Acked-by: Peter Dawson <peter.a.dawson@boeing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_tunnel.c