Skip to content

Commit

Permalink
mpls: Fix mpls_gso handler.
Browse files Browse the repository at this point in the history
mpls gso handler needs to pull skb after segmenting skb.

CC: Simon Horman <[email protected]>
Signed-off-by: Pravin B Shelar <[email protected]>
Acked-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Pravin B Shelar authored and davem330 committed Oct 31, 2014
1 parent d59c876 commit f7065f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/mpls/mpls_gso.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ static struct sk_buff *mpls_gso_segment(struct sk_buff *skb,
* above pulled. It will be re-pushed after returning
* skb_mac_gso_segment(), an indirect caller of this function.
*/
__skb_push(skb, skb->data - skb_mac_header(skb));

__skb_pull(skb, skb->data - skb_mac_header(skb));
out:
return segs;
}
Expand Down

0 comments on commit f7065f4

Please sign in to comment.