• Mark McLoughlin's avatar
    virtio_net: add link status handling · 9f4d26d0
    Mark McLoughlin authored
    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: default avatarMark McLoughlin <markmc@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (added future masking)
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9f4d26d0
virtio_net.c 21.1 KB