diff options
author | Stephen Hemminger <sthemmin@microsoft.com> | 2016-08-23 12:17:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 12:05:38 -0700 |
commit | e3f74b841d482e962b9f5a907eeb25eeeb09aa60 (patch) | |
tree | e5a4a78af965051e3acf57ed5702495e17173c68 /drivers/net/hyperv | |
parent | 6c4c137e5035e0e17fa40c223fa0a3167e0f65fa (diff) | |
download | linux-e3f74b841d482e962b9f5a907eeb25eeeb09aa60.tar.gz linux-e3f74b841d482e962b9f5a907eeb25eeeb09aa60.tar.bz2 linux-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 'drivers/net/hyperv')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 7ed9f13067b5..b874ab1317c6 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -734,8 +734,12 @@ vf_injection_done: static void netvsc_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info) { + struct net_device_context *net_device_ctx = netdev_priv(net); + struct hv_device *dev = net_device_ctx->device_ctx; + strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); + strlcpy(info->bus_info, vmbus_dev_name(dev), sizeof(info->bus_info)); } static void netvsc_get_channels(struct net_device *net, |