aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/lguest_device.c
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2011-11-14 09:17:08 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-16 17:26:46 -0500
commit66846048f55c6c05a4c46c2daabb773173f8f28d (patch)
tree21fdef9bb249056f7f334e67fbbc05a61b0cf9ce /drivers/lguest/lguest_device.c
parent64882709ef07f3eae29c7afc5aa8b84d12733a72 (diff)
enable virtio_net to return bus_info in ethtool -i consistent with emulated NICs
Add a new .bus_name to virtio_config_ops then modify virtio_net to call through to it in an ethtool .get_drvinfo routine to report bus_info in ethtool -i output which is consistent with other emulated NICs and the output of lspci. Signed-off-by: Rick Jones <rick.jones2@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/lguest/lguest_device.c')
-rw-r--r--drivers/lguest/lguest_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c
index 0dc30ffde5ad..595d73197016 100644
--- a/drivers/lguest/lguest_device.c
+++ b/drivers/lguest/lguest_device.c
@@ -381,6 +381,11 @@ error:
381 return PTR_ERR(vqs[i]); 381 return PTR_ERR(vqs[i]);
382} 382}
383 383
384static const char *lg_bus_name(struct virtio_device *vdev)
385{
386 return "";
387}
388
384/* The ops structure which hooks everything together. */ 389/* The ops structure which hooks everything together. */
385static struct virtio_config_ops lguest_config_ops = { 390static struct virtio_config_ops lguest_config_ops = {
386 .get_features = lg_get_features, 391 .get_features = lg_get_features,
@@ -392,6 +397,7 @@ static struct virtio_config_ops lguest_config_ops = {
392 .reset = lg_reset, 397 .reset = lg_reset,
393 .find_vqs = lg_find_vqs, 398 .find_vqs = lg_find_vqs,
394 .del_vqs = lg_del_vqs, 399 .del_vqs = lg_del_vqs,
400 .bus_name = lg_bus_name,
395}; 401};
396 402
397/* 403/*