Skip to content

Commit

Permalink
openvswitch: Fix GSO with multiple MPLS label.
Browse files Browse the repository at this point in the history
MPLS GSO needs to know inner most protocol to process GSO packets.

Fixes: 25cd9ba ("openvswitch: Add basic MPLS support to
kernel").

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 ec449f4 commit cbe7e76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/openvswitch/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key,
hdr = eth_hdr(skb);
hdr->h_proto = mpls->mpls_ethertype;

skb_set_inner_protocol(skb, skb->protocol);
if (!skb->inner_protocol)
skb_set_inner_protocol(skb, skb->protocol);
skb->protocol = mpls->mpls_ethertype;

invalidate_flow_key(key);
Expand Down

0 comments on commit cbe7e76

Please sign in to comment.