diff options
| author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-08-17 08:26:08 +0000 |
|---|---|---|
| committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-08-17 08:26:08 +0000 |
| commit | eacbe92463f17419ce9169fb0a2ccd3d175a29a2 (patch) | |
| tree | 5c77104284dbf37c9852a653570de93fc19774f0 /sys/dev/hyperv/utilities | |
| parent | 0de6c9d6511128de932f832371791335a89ef96d (diff) | |
Notes
Diffstat (limited to 'sys/dev/hyperv/utilities')
| -rw-r--r-- | sys/dev/hyperv/utilities/hv_kvp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/hyperv/utilities/hv_kvp.c b/sys/dev/hyperv/utilities/hv_kvp.c index d83601251575..7ff5140f30ac 100644 --- a/sys/dev/hyperv/utilities/hv_kvp.c +++ b/sys/dev/hyperv/utilities/hv_kvp.c @@ -54,17 +54,13 @@ __FBSDID("$FreeBSD$"); #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 @@ hv_kvp_convert_utf16_ipinfo_to_utf8(struct hv_kvp_ip_msg *host_ip_msg, 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 @@ hv_kvp_convert_utf16_ipinfo_to_utf8(struct hv_kvp_ip_msg *host_ip_msg, 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; } } |
