]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cd00bc344a4eabaab44e9e8258b54597585f775
treecbf59c07ea43220832992c27a4a21a76bfceac11
parent045fcb87436de27f36eea839115a35f07d229717
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