]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jun 2017 23:49:33 +0000 (19:49 -0400)
commita90dd1cc6b01670585236a0d5543353d48b9e682
treeca9c62d86761815526c9694064c0224349e6fd32
parent1725a4fa707d530e3f0e631cfe31f967d6e53342
ip6_tunnel: fix traffic class routing for tunnels

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

Commit cbd785bb5b6b ("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: cbd785bb5b6b ("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>
net/ipv6/ip6_tunnel.c