]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/openvswitch/vport.c
Merge remote-tracking branch 'mkp-scsi/4.9/scsi-fixes' into fixes
[karo-tx-linux.git] / net / openvswitch / vport.c
index 8f198437c724839e61a84cc71fd1f4090912a9fc..7387418ac514ae0ab679aa1b0d677ddbc9363f7b 100644 (file)
@@ -485,7 +485,8 @@ static unsigned int packet_length(const struct sk_buff *skb)
 {
        unsigned int length = skb->len - ETH_HLEN;
 
-       if (skb_vlan_tagged(skb))
+       if (!skb_vlan_tag_present(skb) &&
+           eth_type_vlan(skb->protocol))
                length -= VLAN_HLEN;
 
        /* Don't subtract for multiple VLAN tags. Most (all?) drivers allow