diff mbox

virtio-net: init link state correctly

Message ID 20101103070817.26272.31654.stgit@dhcp-91-158.nay.redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jason Wang Nov. 3, 2010, 7:08 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index bb6b67f..0a0cd35 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -986,9 +986,8 @@  static int virtnet_probe(struct virtio_device *vdev)
 		goto unregister;
 	}
 
-	vi->status = VIRTIO_NET_S_LINK_UP;
+	netif_carrier_off(dev);
 	virtnet_update_status(vi);
-	netif_carrier_on(dev);
 
 	pr_debug("virtnet: registered device %s\n", dev->name);
 	return 0;