Skip to content

Commit

Permalink
mpls: Fix allowed protocols for mpls gso
Browse files Browse the repository at this point in the history
MPLS and Tunnel GSO does not work together.  Reject packet which
request such GSO.

Fixes: 0d89d20 ("MPLS: Add limited GSO support").
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 Dec 24, 2014
1 parent d0edc7b commit 4cc1bec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/mpls/mpls_gso.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ static struct sk_buff *mpls_gso_segment(struct sk_buff *skb,
SKB_GSO_TCPV6 |
SKB_GSO_UDP |
SKB_GSO_DODGY |
SKB_GSO_TCP_ECN |
SKB_GSO_GRE |
SKB_GSO_GRE_CSUM |
SKB_GSO_IPIP)))
SKB_GSO_TCP_ECN)))
goto out;

/* Setup inner SKB. */
Expand Down

0 comments on commit 4cc1bec

Please sign in to comment.