Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151214758
D7919.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D7919.id.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_net_vsc.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_net_vsc.c
+++ head/sys/dev/hyperv/netvsc/hv_net_vsc.c
@@ -495,6 +495,22 @@
{
int i;
+ if (device_is_attached(sc->hn_dev)) {
+ /*
+ * NVS version and NDIS version MUST NOT be changed.
+ */
+ if (bootverbose) {
+ if_printf(sc->hn_ifp, "reinit NVS version 0x%x, "
+ "NDIS version %u.%u\n", sc->hn_nvs_ver,
+ HN_NDIS_VERSION_MAJOR(sc->hn_ndis_ver),
+ HN_NDIS_VERSION_MINOR(sc->hn_ndis_ver));
+ }
+ return (hn_nvs_doinit(sc, sc->hn_nvs_ver));
+ }
+
+ /*
+ * Find the supported NVS version and set NDIS version accordingly.
+ */
for (i = 0; i < nitems(hn_nvs_version); ++i) {
int error;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 9:46 PM (6 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31049365
Default Alt Text
D7919.id.diff (772 B)
Attached To
Mode
D7919: hyperv/hn: Don't allow NVS and NDIS version change upon reinitailization
Attached
Detach File
Event Timeline
Log In to Comment