]> git.karo-electronics.de Git - linux-beck.git/commit
virtio_net: add link status handling
authorMark McLoughlin <markmc@redhat.com>
Tue, 20 Jan 2009 01:09:49 +0000 (17:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jan 2009 22:34:53 +0000 (14:34 -0800)
commit9f4d26d0f3016cf8813977d624751b94465fa317
treeac17805553ff3b3bc570ed73027b150e7ba3b88b
parent357fe2c6d2b12482abd1c3f24a086a2f507f03fc
virtio_net: add link status handling

Allow the host to inform us that the link is down by adding
a VIRTIO_NET_F_STATUS which indicates that device status is
available in virtio_net config.

This is currently useful for simulating link down conditions
(e.g. using proposed qemu 'set_link' monitor command) but
would also be needed if we were to support device assignment
via virtio.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (added future masking)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
include/linux/virtio_net.h