Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81969516
D7519.id19386.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
D7519.id19386.diff
View Options
Index: head/sys/dev/hyperv/utilities/hv_kvp.c
===================================================================
--- head/sys/dev/hyperv/utilities/hv_kvp.c
+++ head/sys/dev/hyperv/utilities/hv_kvp.c
@@ -54,17 +54,13 @@
#include <sys/un.h>
#include <sys/endian.h>
#include <sys/_null.h>
+#include <sys/sema.h>
#include <sys/signal.h>
#include <sys/syslog.h>
#include <sys/systm.h>
#include <sys/mutex.h>
-#include <net/if.h>
-#include <net/if_arp.h>
-#include <net/if_var.h>
-
#include <dev/hyperv/include/hyperv.h>
-#include <dev/hyperv/netvsc/hv_net_vsc.h>
#include <dev/hyperv/utilities/hv_utilreg.h>
#include "hv_util.h"
@@ -333,13 +329,11 @@
for (devcnt = devcnt - 1; devcnt >= 0; devcnt--) {
/* XXX access other driver's softc? are you kidding? */
device_t dev = devs[devcnt];
- struct hn_softc *sc = device_get_softc(dev);
struct vmbus_channel *chan;
char buf[HYPERV_GUID_STRLEN];
/*
* Trying to find GUID of Network Device
- * TODO: need vmbus interface.
*/
chan = vmbus_get_channel(dev);
hyperv_guid2str(vmbus_chan_guid_inst(chan),
@@ -348,7 +342,7 @@
if (strncmp(buf, (char *)umsg->body.kvp_ip_val.adapter_id,
HYPERV_GUID_STRLEN - 1) == 0) {
strlcpy((char *)umsg->body.kvp_ip_val.adapter_id,
- sc->hn_ifp->if_xname, MAX_ADAPTER_ID_SIZE);
+ device_get_nameunit(dev), MAX_ADAPTER_ID_SIZE);
break;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 7:41 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091447
Default Alt Text
D7519.id19386.diff (1 KB)
Attached To
Mode
D7519: hyperv/util: Don't reference hn_softc in KVP
Attached
Detach File
Event Timeline
Log In to Comment