Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161873669
D8311.id21578.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
810 B
Referenced Files
None
Subscribers
None
D8311.id21578.diff
View Options
Index: sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -3908,12 +3908,18 @@
hn_resume_mgmt(struct hn_softc *sc)
{
+ sc->hn_mgmt_taskq = sc->hn_mgmt_taskq0;
+
/*
- * Kick off network change detection, which will
- * do link status check too.
+ * Kick off network change detection, if it was pending.
+ * If no network change was pending, start link status
+ * checks, which is more lightweight than network change
+ * detection.
*/
- sc->hn_mgmt_taskq = sc->hn_mgmt_taskq0;
- hn_network_change(sc);
+ if (sc->hn_link_flags & HN_LINK_FLAG_NETCHG)
+ hn_network_change(sc);
+ else
+ hn_link_status_update(sc);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 3:14 PM (6 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34849227
Default Alt Text
D8311.id21578.diff (810 B)
Attached To
Mode
D8311: hyperv/hn: Start link status check, if no network changes were pending.
Attached
Detach File
Event Timeline
Log In to Comment