]> git.baikalelectronics.ru Git - 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)
commit1d2bb9fafca9ac002b95e4bb1e73ecfd671c9f5a
tree547462f63d3b8f40c293bcd691533900c019a2de
parentd5d31ec89d79bed330b9fc7691b10681dc3c46e0
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