projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a4b30
)
gre: Allow IPv6 ToS bits to be propagated to tunnel packets.
author
Jesse Gross
<jesse@nicira.com>
Thu, 4 Mar 2010 22:02:37 +0000
(17:02 -0500)
committer
Jesse Gross
<jesse@nicira.com>
Fri, 5 Mar 2010 21:31:27 +0000
(16:31 -0500)
The IPv6 ToS bits should have the same meaning as in IPv4, so
allow them to be copied from the inner packet to the tunnel packet
if enabled.
datapath/linux-2.6/compat-2.6/ip_gre.c
patch
|
blob
|
history
diff --git
a/datapath/linux-2.6/compat-2.6/ip_gre.c
b/datapath/linux-2.6/compat-2.6/ip_gre.c
index 2f46e05aef2dfdbcfc55092db908978142e41fd1..5882b3cbd2ce032d4af893138d3d6f241b37414e 100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/ip_gre.c
+++ b/
datapath/linux-2.6/compat-2.6/ip_gre.c
@@
-813,6
+813,8
@@
static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
tos = 0;
if (skb->protocol == htons(ETH_P_IP))
tos = old_iph->tos;
+ else if (skb->protocol == htons(ETH_P_IPV6))
+ tos = ipv6_get_dsfield(ipv6_hdr(skb));
}
{