Merge tag 'kvm-s390-kernel-access' from emailed bundle
[linux-2.6-microblaze.git] / net / ipv4 / ip_gre.c
index 2ac2b95..99db2e4 100644 (file)
@@ -604,8 +604,9 @@ static int gre_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb)
 
        key = &info->key;
        ip_tunnel_init_flow(&fl4, IPPROTO_GRE, key->u.ipv4.dst, key->u.ipv4.src,
-                           tunnel_id_to_key32(key->tun_id), key->tos, 0,
-                           skb->mark, skb_get_hash(skb));
+                           tunnel_id_to_key32(key->tun_id),
+                           key->tos & ~INET_ECN_MASK, 0, skb->mark,
+                           skb_get_hash(skb));
        rt = ip_route_output_key(dev_net(dev), &fl4);
        if (IS_ERR(rt))
                return PTR_ERR(rt);