[Bug 209427] if_vtnet(4) is not sending LINK_(UP|DOWN) events

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 10 15:52:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209427

--- Comment #1 from Roman Bogorodskiy <novel at FreeBSD.org> ---
Created attachment 170183
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170183&action=edit
dirty fix

Attaching a dirty fix that changes vtnet_is_link_up() just to check the
IFF_DRV_RUNNING flag and also calling vtnet_update_link_status() instead of
setting sc->vtnet_link_active to 0 in vtnet_stop().

This is most likely wrong and breaks something, though at fixes the original
issue:

# fg
cat /var/run/devd.seqpacket.pipe (wd: ~)
^Z
Suspended
(wd now: /usr/src/sys/dev/virtio/network)
# ifconfig vtnet0 down; ifconfig vtnet0 up
# fg
cat /var/run/devd.seqpacket.pipe (wd: ~)
!system=IFNET subsystem=vtnet0 type=LINK_DOWN
!system=IFNET subsystem=vtnet0 type=LINK_UP

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-virtualization mailing list