]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
virtio_net: use LE accessors for speed/duplex
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 09:39:36 +0000 (05:39 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:41 +0000 (11:08 -0400)
commit64ffa39dc860fb9772225c694353f73eca5801c6
tree547462f63d3b8f40c293bcd691533900c019a2de
parent83eb9db95eb453f1db651909ad4598c3d44ef1e1
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>
drivers/net/virtio_net.c
include/uapi/linux/virtio_net.h