]> git.baikalelectronics.ru Git - kernel.git/commit
gre: propagate ipv6 transport class
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 9 Jul 2010 04:35:58 +0000 (21:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jul 2010 04:35:58 +0000 (21:35 -0700)
commiteb50703756ca0053c4a98307dd906ca52640deef
tree380fa014b13eb8c04bbea478a1b93081b2a30925
parent18446955de125f11c842fbd2ceff6fbdf868ae94
gre: propagate ipv6 transport class

This patch makes IPV6 over IPv4 GRE tunnel propagate the transport
class field from the underlying IPV6 header to the IPV4 Type Of Service
field. Without the patch, all IPV6 packets in tunnel look the same to QoS.

This assumes that IPV6 transport class is exactly the same
as IPv4 TOS. Not sure if that is always the case?  Maybe need
to mask off some bits.

The mask and shift to get tclass is copied from ipv6/datagram.c

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c