Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169286366
D11710.id31406.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
D11710.id31406.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 3:25 AM (14 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37855421
Default Alt Text
D11710.id31406.diff (726 B)
Attached To
Mode
D11710: hyperv/hn: Add comment about ether_ifattach event subscription.
Attached
Detach File
Event Timeline
Log In to Comment