Skip to content

Commit

Permalink
Revert "ip_gre: increase inner ip header ID during segmentation"
Browse files Browse the repository at this point in the history
This reverts commit 10c0d7e.
Next commit makes this commit unnecessary.

Acked-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pravin B Shelar authored and David S. Miller committed Mar 25, 2013
1 parent 5f64a7d commit 9cb690d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions net/ipv4/gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 9cb690d

Please sign in to comment.