• M
    virtio_net: add link status handling · 9f4d26d0
    Mark McLoughlin 提交于
    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: NMark McLoughlin <markmc@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (added future masking)
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    9f4d26d0
virtio_net.c 21.1 KB