aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2016-08-23 12:17:56 -0700
committerDavid S. Miller <davem@davemloft.net>2016-08-23 12:05:38 -0700
commite3f74b841d482e962b9f5a907eeb25eeeb09aa60 (patch)
treee5a4a78af965051e3acf57ed5702495e17173c68 /include
parenthv_netvsc: make variable local (diff)
downloadlinux-dev-e3f74b841d482e962b9f5a907eeb25eeeb09aa60.tar.xz
linux-dev-e3f74b841d482e962b9f5a907eeb25eeeb09aa60.zip
hv_netvsc: report vmbus name in ethtool
Make netvsc on vmbus behave more like PCI. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hyperv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index a6bc974def8f..b01c8c3dd531 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1114,6 +1114,13 @@ int __must_check __vmbus_driver_register(struct hv_driver *hv_driver,
const char *mod_name);
void vmbus_driver_unregister(struct hv_driver *hv_driver);
+static inline const char *vmbus_dev_name(const struct hv_device *device_obj)
+{
+ const struct kobject *kobj = &device_obj->device.kobj;
+
+ return kobj->name;
+}
+
void vmbus_hvsock_device_unregister(struct vmbus_channel *channel);
int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj,