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>
This commit is contained in:
parent
64882709ef
commit
66846048f5
6 changed files with 55 additions and 0 deletions
|
|
@ -263,6 +263,11 @@ error:
|
|||
return PTR_ERR(vqs[i]);
|
||||
}
|
||||
|
||||
static const char *kvm_bus_name(struct virtio_device *vdev)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
/*
|
||||
* The config ops structure as defined by virtio config
|
||||
*/
|
||||
|
|
@ -276,6 +281,7 @@ static struct virtio_config_ops kvm_vq_configspace_ops = {
|
|||
.reset = kvm_reset,
|
||||
.find_vqs = kvm_find_vqs,
|
||||
.del_vqs = kvm_del_vqs,
|
||||
.bus_name = kvm_bus_name,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue