[Qemu-devel] [PATCH 0/2] virtio_net: allow hypervisor to indicate linkspeed and duplex setting

Jason Baron via Qemu-devel posted 2 patches 52 weeks ago
Failed in applying to current master (apply log)
hw/net/virtio-net.c                         | 29 +++++++++++++++++++++++++++++
include/hw/virtio/virtio-net.h              |  3 +++
include/standard-headers/linux/virtio_net.h |  4 ++++
3 files changed, 36 insertions(+)

[Qemu-devel] [PATCH 0/2] virtio_net: allow hypervisor to indicate linkspeed and duplex setting

Posted by Jason Baron via Qemu-devel 52 weeks ago
We have found it useful to be able to set the linkspeed and duplex
settings from the host-side for virtio_net. This obviates the need
for guest changes and settings for these fields.

The ability to set linkspeed and duplex was introduced by:

16032be virtio_net: add ethtool support for set and get of settings

And using 'ethtool -s' continues to over-write the linkspeed/duplex
settings with this patch.

The 1/2 patch is against net-next, while the 2/2 patch is the associated
qemu changes that would go in after as update-linux-headers.sh should
be run first. So 2/2 is more meant as a demonstration of how I intend this
to work.

Thanks,

-Jason

Jason Baron (2):
  virtio_net: allow hypervisor to indicate linkspeed and duplex setting
  qemu: add linkspeed and duplex setting to virtio-net

 linux changes:

 drivers/net/virtio_net.c        | 11 ++++++++++-
 include/uapi/linux/virtio_net.h |  4 ++++
 2 files changed, 14 insertions(+), 1 deletion(-)

 qemu changes:

 hw/net/virtio-net.c                         | 29 +++++++++++++++++++++++++++++                                
 include/hw/virtio/virtio-net.h              |  3 +++                                                          
 include/standard-headers/linux/virtio_net.h |  4 ++++                                                         
 3 files changed, 36 insertions(+)      

-- 
2.6.1