Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81969943
D11710.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.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
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)
Attached To
Mode
D11710: hyperv/hn: Add comment about ether_ifattach event subscription.
Attached
Detach File
Event Timeline
Log In to Comment