Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2016 15:52:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-virtualization@FreeBSD.org
Subject:   [Bug 209427] if_vtnet(4) is not sending LINK_(UP|DOWN) events
Message-ID:  <bug-209427-27103-sLxSpwbcoQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209427-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209427-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209427

--- Comment #1 from Roman Bogorodskiy <novel@FreeBSD.org> ---
Created attachment 170183
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170183&action=
=3Dedit
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=3DIFNET subsystem=3Dvtnet0 type=3DLINK_DOWN
!system=3DIFNET subsystem=3Dvtnet0 type=3DLINK_UP

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209427-27103-sLxSpwbcoQ>