]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
virtio_net: Make virtio_net support carrier detection
authorPantelis Koukousoulas <pktoss@gmail.com>
Thu, 19 Mar 2009 01:40:02 +0000 (18:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2009 01:40:02 +0000 (18:40 -0700)
commit4783256ef92f5aecd6d54693b16386f2a0021c2a
tree624d67317331bc4b005a1196f9f5c76d6bd56b45
parent17d04500e2528217de5fe967599f98ee84348a9c
virtio_net: Make virtio_net support carrier detection

Impact: Make NetworkManager work with virtio_net

For now the semantics are simple: There is always carrier.

This allows a seamless experience with e.g., qemu/kvm
where NetworkManager just configures and sets up
everything automagically.

If/when a generally agreed-upon way to control
carrier on/off in the emulator/hypervisor level
emerges, it will be trivial to extend the driver
to support that too, but for now even this 2-liner
makes user experience that much better.

Signed-off-by: Pantelis Koukousoulas <pktoss@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c