[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1264454176.28852.129.camel@w-sridhar.beaverton.ibm.com>
Date: Mon, 25 Jan 2010 13:16:16 -0800
From: Sridhar Samudrala <sri@...ibm.com>
To: David Miller <davem@...emloft.net>,
Herbert Xu <herbert@...dor.apana.org.au>, rusty@...tcorp.com.au
Cc: netdev <netdev@...r.kernel.org>
Subject: [PATCH net-next-2.6] virtio_net: Set vlan_features to enable
offloads on vlan devices
Set vlan_features in virtnet_probe() so that all the available offloads
are enabled on vlan devices attached to virtio_net devices.
Signed-off-by: Sridhar Samudrala <sri@...ibm.com>
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -872,6 +872,8 @@ static int virtnet_probe(struct virtio_device *vdev)
dev->features |= NETIF_F_UFO;
}
+ dev->vlan_features = dev->features;
+
/* Configuration may specify what MAC to use. Otherwise random. */
if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC)) {
vdev->config->get(vdev,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists