datapath: Fix MPLS action validation.
[cascardo/ovs.git] / datapath / linux / compat / include / net / vxlan.h
index 099d824..84afe53 100644 (file)
@@ -15,7 +15,8 @@ static inline int rpl_vxlan_xmit_skb(struct vxlan_sock *vs,
                    __be32 src, __be32 dst, __u8 tos, __u8 ttl, __be16 df,
                    __be16 src_port, __be16 dst_port, __be32 vni)
 {
-       if (skb->encapsulation && skb_is_gso(skb)) {
+       if ((ovs_skb_get_inner_protocol(skb) || skb->encapsulation) &&
+            skb_is_gso(skb)) {
                kfree_skb(skb);
                return -ENOSYS;
        }