Page MenuHomeFreeBSD

D11710.diff
No OneTemporary

D11710.diff

Index: head/sys/dev/hyperv/netvsc/if_hn.c
===================================================================
--- head/sys/dev/hyperv/netvsc/if_hn.c
+++ head/sys/dev/hyperv/netvsc/if_hn.c
@@ -1541,6 +1541,12 @@
sc->hn_ifaddr_evthand = EVENTHANDLER_REGISTER(ifaddr_event,
hn_ifaddr_event, sc, EVENTHANDLER_PRI_ANY);
+ /*
+ * NOTE:
+ * Subscribe ether_ifattach event, instead of ifnet_arrival event,
+ * since interface's LLADDR is needed; interface LLADDR is not
+ * available when ifnet_arrival event is triggered.
+ */
sc->hn_ifnet_atthand = EVENTHANDLER_REGISTER(ether_ifattach_event,
hn_ifnet_attevent, sc, EVENTHANDLER_PRI_ANY);
sc->hn_ifnet_dethand = EVENTHANDLER_REGISTER(ifnet_departure_event,

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 15, 12:39 PM (19 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091664
Default Alt Text
D11710.diff (726 B)

Event Timeline