From: Pravin B Shelar Date: Sun, 24 Mar 2013 17:36:16 +0000 (+0000) Subject: Revert "ip_gre: increase inner ip header ID during segmentation" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cb690d1b4a798d5c7af022047846f42f273d873;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "ip_gre: increase inner ip header ID during segmentation" This reverts commit 10c0d7ed32b7c273970a20e211c08ab46fea3c26. Next commit makes this commit unnecessary. Acked-by: Cong Wang Signed-off-by: Pravin B Shelar Signed-off-by: David S. Miller --- diff --git a/net/ipv4/gre.c b/net/ipv4/gre.c index e20631cb4185..7a4c710c4cdd 100644 --- a/net/ipv4/gre.c +++ b/net/ipv4/gre.c @@ -125,9 +125,8 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb, netdev_features_t enc_features; int ghl = GRE_HEADER_SECTION; struct gre_base_hdr *greh; - struct iphdr *iph; int mac_len = skb->mac_len; - int tnl_hlen, id; + int tnl_hlen; bool csum; if (unlikely(skb_shinfo(skb)->gso_type & @@ -171,8 +170,6 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb, skb_set_network_header(skb, skb_inner_network_offset(skb)); skb->mac_len = skb_inner_network_offset(skb); - iph = ip_hdr(skb); - id = ntohs(iph->id); /* segment inner packet. */ enc_features = skb->dev->hw_enc_features & netif_skb_features(skb); segs = skb_mac_gso_segment(skb, enc_features); @@ -182,8 +179,6 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb, skb = segs; tnl_hlen = skb_tnl_header_len(skb); do { - iph = (struct iphdr *)skb->data; - iph->id = htons(id++); __skb_push(skb, ghl); if (csum) { __be32 *pcsum;