vdpa/mlx5: fix up endian-ness for mtu
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Aug 2020 13:13:10 +0000 (09:13 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Aug 2020 14:38:55 +0000 (10:38 -0400)
commit8a7c3213db068135e816a6a517157de6443290d6
treecbf59c07ea43220832992c27a4a21a76bfceac11
parentcf16fe9243bfa2863491026fc727618c7c593c84
vdpa/mlx5: fix up endian-ness for mtu

VDPA mlx5 accesses config space as native endian - this is
wrong since it's a modern device and actually uses LE.

It only supports modern guests so we could punt and
just force LE, but let's use the full virtio APIs since people
tend to copy/paste code, and this is not data path anyway.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c