virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio-ccw: wire up ->bus_name callback
@ 2019-01-03 14:11 Cornelia Huck
  2019-01-09 18:39 ` Cornelia Huck
  0 siblings, 1 reply; 2+ messages in thread
From: Cornelia Huck @ 2019-01-03 14:11 UTC (permalink / raw)
  To: Halil Pasic; +Cc: linux-s390, Cornelia Huck, kvm, virtualization

Return the bus id of the ccw proxy device. This makes 'ethtool -i'
show a more useful value than 'virtio' in the bus-info field.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
 drivers/s390/virtio/virtio_ccw.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/s390/virtio/virtio_ccw.c b/drivers/s390/virtio/virtio_ccw.c
index fc9dbad476c0..689aec54bfcf 100644
--- a/drivers/s390/virtio/virtio_ccw.c
+++ b/drivers/s390/virtio/virtio_ccw.c
@@ -967,6 +967,13 @@ static void virtio_ccw_set_status(struct virtio_device *vdev, u8 status)
 	kfree(ccw);
 }
 
+static const char *virtio_ccw_bus_name(struct virtio_device *vdev)
+{
+	struct virtio_ccw_device *vcdev = to_vc_device(vdev);
+
+	return dev_name(&vcdev->cdev->dev);
+}
+
 static const struct virtio_config_ops virtio_ccw_config_ops = {
 	.get_features = virtio_ccw_get_features,
 	.finalize_features = virtio_ccw_finalize_features,
@@ -977,6 +984,7 @@ static const struct virtio_config_ops virtio_ccw_config_ops = {
 	.reset = virtio_ccw_reset,
 	.find_vqs = virtio_ccw_find_vqs,
 	.del_vqs = virtio_ccw_del_vqs,
+	.bus_name = virtio_ccw_bus_name,
 };
 
 
-- 
2.17.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] virtio-ccw: wire up ->bus_name callback
  2019-01-03 14:11 [PATCH] virtio-ccw: wire up ->bus_name callback Cornelia Huck
@ 2019-01-09 18:39 ` Cornelia Huck
  0 siblings, 0 replies; 2+ messages in thread
From: Cornelia Huck @ 2019-01-09 18:39 UTC (permalink / raw)
  To: Halil Pasic; +Cc: linux-s390, kvm, virtualization

On Thu,  3 Jan 2019 15:11:45 +0100
Cornelia Huck <cohuck@redhat.com> wrote:

> Return the bus id of the ccw proxy device. This makes 'ethtool -i'
> show a more useful value than 'virtio' in the bus-info field.
> 
> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
> ---
>  drivers/s390/virtio/virtio_ccw.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Queued.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-09 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-03 14:11 [PATCH] virtio-ccw: wire up ->bus_name callback Cornelia Huck
2019-01-09 18:39 ` Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).