Re: [V2 PATCH] virtio-net: init link state correctly

From: David Miller
Date: Fri Nov 12 2010 - 15:25:34 EST


From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Fri, 05 Nov 2010 10:50:08 +0800

> For device that supports VIRTIO_NET_F_STATUS, there's no need to
> assume the link is up and we need to call nerif_carrier_off() before
> querying device status, otherwise we may get wrong operstate after
> diver was loaded because the link watch event was not fired as
> expected.
>
> For device that does not support VIRITO_NET_F_STATUS, we could not get
> its status through virtnet_update_status() and what we can only do is
> always assuming the link is up.
>
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

I've applied Rusty's submission of this patch which has Michael T.'s
ACK, etc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/