X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport-netdev.c;h=11faf8ad11b8157c7ad2940b2064e1b3d450a8cc;hb=0b8b6f71d5621a726a3bf5aa1bbee27ed1f4a8fe;hp=21fa6a0e123a8e0eebce6a72c3032f098f77f672;hpb=3f6256afdcf7021b0ce85dfe0c4afb62b967bef4;p=openvswitch diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c index 21fa6a0e..11faf8ad 100644 --- a/datapath/vport-netdev.c +++ b/datapath/vport-netdev.c @@ -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)) {