Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136999432
D7950.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7950.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
@@ -444,8 +444,15 @@
vmbus_xact_put(xact);
if (status != HN_NVS_STATUS_OK) {
- if_printf(sc->hn_ifp, "nvs init failed for ver 0x%x\n",
- nvs_ver);
+ if (bootverbose) {
+ /*
+ * Caller may try another NVS version, and will log
+ * error if there are no more NVS versions to try,
+ * so don't bark out loud here.
+ */
+ if_printf(sc->hn_ifp, "nvs init failed for ver 0x%x\n",
+ nvs_ver);
+ }
return (EINVAL);
}
return (0);
@@ -499,7 +506,7 @@
static int
hn_nvs_init(struct hn_softc *sc)
{
- int i;
+ int i, error;
if (device_is_attached(sc->hn_dev)) {
/*
@@ -511,15 +518,19 @@
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));
+
+ error = hn_nvs_doinit(sc, sc->hn_nvs_ver);
+ if (error) {
+ if_printf(sc->hn_ifp, "reinit NVS version 0x%x "
+ "failed: %d\n", sc->hn_nvs_ver, error);
+ }
+ return (error);
}
/*
* Find the supported NVS version and set NDIS version accordingly.
*/
for (i = 0; i < nitems(hn_nvs_version); ++i) {
- int error;
-
error = hn_nvs_doinit(sc, hn_nvs_version[i]);
if (!error) {
sc->hn_nvs_ver = hn_nvs_version[i];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 11:09 PM (11 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25823897
Default Alt Text
D7950.diff (1 KB)
Attached To
Mode
D7950: hyperv/hn: Let the caller of hn_nvs_doinit() do the error logging.
Attached
Detach File
Event Timeline
Log In to Comment