[SCSI] net: reclaim 8 upper bits of the netdev->features from GSO
[linux-2.6-block.git] / drivers / net / xen-netfront.c
index cd6184ee08ee473b01631a5b50dbb30dae521e89..2ce536fcd2093463a2a2a6e90949cecc98b36646 100644 (file)
@@ -1511,7 +1511,7 @@ static int xennet_set_tso(struct net_device *dev, u32 data)
 static void xennet_set_features(struct net_device *dev)
 {
        /* Turn off all GSO bits except ROBUST. */
-       dev->features &= (1 << NETIF_F_GSO_SHIFT) - 1;
+       dev->features &= ~NETIF_F_GSO_MASK;
        dev->features |= NETIF_F_GSO_ROBUST;
        xennet_set_sg(dev, 0);