aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
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/s390
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/s390')
-rw-r--r--drivers/s390/kvm/kvm_virtio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c
index 94f49ffa70ba..8af868bab20b 100644
--- a/drivers/s390/kvm/kvm_virtio.c
+++ b/drivers/s390/kvm/kvm_virtio.c
@@ -263,6 +263,11 @@ error:
263 return PTR_ERR(vqs[i]); 263 return PTR_ERR(vqs[i]);
264} 264}
265 265
266static const char *kvm_bus_name(struct virtio_device *vdev)
267{
268 return "";
269}
270
266/* 271/*
267 * The config ops structure as defined by virtio config 272 * The config ops structure as defined by virtio config
268 */ 273 */
@@ -276,6 +281,7 @@ static struct virtio_config_ops kvm_vq_configspace_ops = {
276 .reset = kvm_reset, 281 .reset = kvm_reset,
277 .find_vqs = kvm_find_vqs, 282 .find_vqs = kvm_find_vqs,
278 .del_vqs = kvm_del_vqs, 283 .del_vqs = kvm_del_vqs,
284 .bus_name = kvm_bus_name,
279}; 285};
280 286
281/* 287/*