diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2020-08-05 11:39:36 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-08-05 17:08:41 +0200 |
commit | 64ffa39dc860fb9772225c694353f73eca5801c6 (patch) | |
tree | 547462f63d3b8f40c293bcd691533900c019a2de /include/uapi | |
parent | virtio_config: drop LE option from config space (diff) | |
download | linux-64ffa39dc860fb9772225c694353f73eca5801c6.tar.xz linux-64ffa39dc860fb9772225c694353f73eca5801c6.zip |
virtio_net: use LE accessors for speed/duplex
Speed and duplex config fields depend on VIRTIO_NET_F_SPEED_DUPLEX
which being 63>31 depends on VIRTIO_F_VERSION_1.
Accordingly, use LE accessors for these fields.
Reported-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/virtio_net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index 27d996f29dd1..3f55a4215f11 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h @@ -99,7 +99,7 @@ struct virtio_net_config { * speed, in units of 1Mb. All values 0 to INT_MAX are legal. * Any other value stands for unknown. */ - __virtio32 speed; + __le32 speed; /* * 0x00 - half duplex * 0x01 - full duplex |