diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2020-08-05 12:39:36 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2020-08-05 18:08:41 +0300 |
| commit | 64ffa39dc860fb9772225c694353f73eca5801c6 (patch) | |
| tree | 547462f63d3b8f40c293bcd691533900c019a2de /include | |
| parent | 83eb9db95eb453f1db651909ad4598c3d44ef1e1 (diff) | |
| download | linux-64ffa39dc860fb9772225c694353f73eca5801c6.tar.xz | |
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')
| -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 |
