aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2016-10-26 11:30:29 -0400
committerDavid S. Miller <davem@davemloft.net>2016-10-29 15:03:14 -0400
commite934f684856393a0b2aecc7fdd8357a48b79c535 (patch)
tree26e6feb3fdf4180892d5912007fc420f64d51c34
parent104ba78c98808ae837d1f63aae58c183db5505df (diff)
Revert "hv_netvsc: report vmbus name in ethtool"
This reverts commit e3f74b841d48 ("hv_netvsc: report vmbus name in ethtool")' because of problem introduced by commit f9a56e5d6a0ba ("Drivers: hv: make VMBus bus ids persistent"). This changed the format of the vmbus name and this new format is too long to fit in the bus_info field of ethtool. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/hyperv/netvsc_drv.c4
-rw-r--r--include/linux/hyperv.h7
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index c71d966d905f..f6382150b16a 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -699,12 +699,8 @@ int netvsc_recv_callback(struct hv_device *device_obj,
699static void netvsc_get_drvinfo(struct net_device *net, 699static void netvsc_get_drvinfo(struct net_device *net,
700 struct ethtool_drvinfo *info) 700 struct ethtool_drvinfo *info)
701{ 701{
702 struct net_device_context *net_device_ctx = netdev_priv(net);
703 struct hv_device *dev = net_device_ctx->device_ctx;
704
705 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); 702 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
706 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); 703 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
707 strlcpy(info->bus_info, vmbus_dev_name(dev), sizeof(info->bus_info));
708} 704}
709 705
710static void netvsc_get_channels(struct net_device *net, 706static void netvsc_get_channels(struct net_device *net,
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 6824556d37ed..cd184bdca58f 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1169,13 +1169,6 @@ int __must_check __vmbus_driver_register(struct hv_driver *hv_driver,
1169 const char *mod_name); 1169 const char *mod_name);
1170void vmbus_driver_unregister(struct hv_driver *hv_driver); 1170void vmbus_driver_unregister(struct hv_driver *hv_driver);
1171 1171
1172static inline const char *vmbus_dev_name(const struct hv_device *device_obj)
1173{
1174 const struct kobject *kobj = &device_obj->device.kobj;
1175
1176 return kobj->name;
1177}
1178
1179void vmbus_hvsock_device_unregister(struct vmbus_channel *channel); 1172void vmbus_hvsock_device_unregister(struct vmbus_channel *channel);
1180 1173
1181int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj, 1174int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj,