diff options
author | Jason Baron | 2018-03-08 04:25:41 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2018-03-13 22:09:49 +0100 |
commit | 9473939ed7addcaaeb8fde5c093918fb7fa0919c (patch) | |
tree | c11ed76a0835dc9ea9cd90e9ad12a0dcc75dbdac /hw/arm/cubieboard.c | |
parent | virtio-net: use 64-bit values for feature flags (diff) | |
download | qemu-9473939ed7addcaaeb8fde5c093918fb7fa0919c.tar.gz qemu-9473939ed7addcaaeb8fde5c093918fb7fa0919c.tar.xz qemu-9473939ed7addcaaeb8fde5c093918fb7fa0919c.zip |
virtio-net: add linkspeed and duplex settings to virtio-net
Although linkspeed and duplex can be set in a linux guest via 'ethtool -s',
this requires custom ethtool commands for virtio-net by default.
Introduce a new feature flag, VIRTIO_NET_F_SPEED_DUPLEX, which allows
the hypervisor to export a linkspeed and duplex setting. The user can
subsequently overwrite it later if desired via: 'ethtool -s'.
Linkspeed and duplex settings can be set as:
'-device virtio-net,speed=10000,duplex=full'
where speed is [0...INT_MAX], and duplex is ["half"|"full"].
Signed-off-by: Jason Baron <jbaron@akamai.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: virtio-dev@lists.oasis-open.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/arm/cubieboard.c')
0 files changed, 0 insertions, 0 deletions