datapath: Don't use vlan_features before 2.6.26.
[sliver-openvswitch.git] / datapath / vport-netdev.c
index 21fa6a0..11faf8a 100644 (file)
@@ -277,7 +277,11 @@ static int netdev_send(struct vport *vport, struct sk_buff *skb)
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
        if (vlan_tx_tag_present(skb)) {
                int err;
-               int features = skb->dev->features & skb->dev->vlan_features;
+               int features = 0;
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+               features = skb->dev->features & skb->dev->vlan_features;
+#endif
 
                err = vswitch_skb_checksum_setup(skb);
                if (unlikely(err)) {