aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/ip_gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index af6be70821c4..801e02355ec4 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -820,8 +820,8 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
820 820
821 ttl = tiph->ttl; 821 ttl = tiph->ttl;
822 tos = tiph->tos; 822 tos = tiph->tos;
823 if (tos == 1) { 823 if (tos & 0x1) {
824 tos = 0; 824 tos &= ~0x1;
825 if (skb->protocol == htons(ETH_P_IP)) 825 if (skb->protocol == htons(ETH_P_IP))
826 tos = old_iph->tos; 826 tos = old_iph->tos;
827 else if (skb->protocol == htons(ETH_P_IPV6)) 827 else if (skb->protocol == htons(ETH_P_IPV6))